##' \code{loadings(object)} and then design your own plotting method.1##' @title Side by side scores and loadings plot2##' @usage slplot(object, pcs=c(1,2), scoresLoadings=c(TRUE, TRUE),3##' sl="def", ll="def", hotelling=0.95, rug=TRUE, sub=NULL,...)4##' @param object5##' @param pcs6##' @param tjo7##' @return None, used for side effect.8##' @export9##' @author Henning Redestig10setMethod("slplot", "pcaRes",11function(object, pcs=c(1,2), tjo) {12#(ess-roxy-get-function-args)13opar <- par(no.readonly=TRUE)14cl <- match.call()15})1617##' .. content for \description{} (no empty lines) ..18##'19##' .. content for \details{} ..20##' @title21##' @param a22##' @param b23##' @param d24##' @param asd25##' @return26##' @author Henning Redestig27trickyInArgsComments <- function(a,#comment28b,#hejhopp trams29d,asd) {30print("hello")31}3233##' .. content for \description{} (no empty lines) ..34##'35##' .. content for \details{} ..36##' @title37##' @param a38##' @param b39##' @param cc40##' @return41##' @author Henning Redestig42withdef <- function(a, b=c("asd","ffd", "asd", "ffd",43"asd",44"ffd","asd",45"ffd"), cc) {46print("hello")4748}4950setClass(Class="inference", representation=representation(model="character"51, sample.size="numeric"52, robust.se="logical"53, two.sided="logical"54, ci.level="numeric"), contains=c("matrix"))5556##' .. content for \description{} (no empty lines)57##'58##' .. content for \details{} ..59##' @title asd60##' @param a61##' @param asdsd62##' @param sd63##' @param ...64##' @return s65##' @author Henning Redestig66tempFixNasFunction <- function(a,asdsd, sd, ...) {67asds68}6970setGeneric("updateMu", function(respM, gamma, ...)71standardGeneric("updateMu"))727374## (make-local-variable 'adaptive-fill-regexp)75## (setq adaptive-fill-regexp (concat ess-roxy-str adaptive-fill-regexp))76## (make-local-variable 'adaptive-fill-first-line-regexp)77## (setq adaptive-fill-first-line-regexp (concat ess-roxy-str adaptive-fill-first-line-regexp))78## (make-local-variable 'paragraph-start)79## (setq paragraph-start (concat "\\(" ess-roxy-str "\\)*" paragraph-start))80## (make-local-variable 'paragraph-separate)81## (setq paragraph-separate (concat "\\(" ess-roxy-str "\\)*" paragraph-separate))82## (auto-fill-mode)83asd8485##' aqdasd lksa odnsl dlsakdn lsakdn sladn asijdi j 1. asdsd alksnd86##' lasdn ldnad87##'88##'89##' alkdnal dl lakd lasdnladna ld aldan lda dlakd nladn a amd lakdn90##' ajdn asjdns91##'92##' lajnsd jasdn aksjdnaksjnd asjdnaksdnajsdnajsd aksdn askdjn93##' akjdn aksdnkasjdnka94##'95##' 1. aldn adlnsald ladn saldnlaksd naskl96##' 2. ad asdjnksadn adjn skajan kda dksadkas dkjan dkasndkadn97##' ajsd nkj dakjd sd98##' @title hej99##' @param fitta asdadsd100##' 1.101##' 2. asd102##' @param diagonals pung asa as a sad s dsa da das d asd asd103##' add104##' @param tjo asd105##' @param asdasd106##' @return me107##' @author Henning Redestig108tempFixNas <- function(fitta, diagonals, tjo, asdasd) {109110for(i in index) {111data <- otherdata[i]112}113114}115116117##' Simply replace completely ajksbdkjsa djskbdkajbd118##'119##' ksdb skdb skasdaj ahd (ess-roxy-beg-of-field) (newline-and-indent)120##' aksndlsakndlksdn jkahd ksn dkjands121##' @title Temporary fix for missing values122##' @param diagonals The diagonal to be replaced, i.e. the first,123##' second and so on when looking at the fat version of the matrix124##' @param tjo asdsdsdw125##' @return The original matrix with completely missing rows/cols126##' filled with zeroes. oasndsnd aksdnkasdnskans dkas ndkjasndksdn127##' skandkand ksjandknsd128##' @export129##' @examples130##' tempFixNas(iris)131##' pi <- 1132##' plot(x)133##' @author Henning Redestig134tempFixNas <- function(diagonals, tjo) {135(ess-roxy-delete-args)136wilcox.test137(ess-roxy-goto-end-of-entry)138badRows <- apply(mat, 1, function(x) all(is.na(x)))139badCols <- apply(mat, 2, function(x) all(is.na(x)))140mat[ badRows,] <- 0 (ess-roxy-get-args-list-from-def)141mat[,badCols ] <- 0 (ess-roxy-get-args-list-from-entry)142mat143}144145##' <description>146##'147##' <details>148##' @title asdsd149##' @param asd asd150##' @param test1 asd151##' @param asdsd152##' @param tjo asdasd153##' @return aa154##' @author Henning Redestig155tempFixNas <- function(asd,test1,asdsd,tjo=c("asd", "asdasd")) {156## (ess-roxy-goto-end-of-entry)157## (setq fun (ess-roxy-get-args-list-from-def))158## (setq ent (ess-roxy-get-args-list-from-entry))159## (ess-roxy-merge-args fun ent)160## (ess-roxy-mrg-args fun ent)161## (ess-roxy-get-args-list-from-entry)162## (ess-roxy-get-function-args)163## (ess-roxy-goto-end-of-entry)164165## (setq here (ess-roxy-delete-args))166## (ess-roxy-insert-args (ess-roxy-get-args-list-from-def) here)167badRows <- apply(mat, 1, function(x) all(is.na(x)))168badCols <- apply(mat, 2, function(x) all(is.na(x)))169mat[ badRows,] <- 0170mat[,badCols ] <- 0171mat172}173174##' <description>175##'176##' <details>177##' @title my title178##' @param test1179##' @param tjo180##' @param pung181##' @param str182##' @return value183##' @author Henning Redestig184tempFixNasBad <- function(test1,tjo=c("asd", "asdasd"), pung, str) {185asdsd# (car (cdr (ess-end-of-function nil t)))186}187188##' Provides Bayesian PCA, Probabilistic PCA, Nipals PCA, Inverse189##' Non-Linear PCA and the conventional SVD PCA. A cluster based190##' method for missing value estimation is included for comparison.191##' BPCA, PPCA and NipalsPCA may be used to perform PCA on incomplete192##' data as well as for accurate missing value estimation. A set of193##' methods for printing and plotting the results is also provided.194##' All PCA methods make use of the same data structure (pcaRes) to195##' provide a unique interface to the PCA results. Developed at the196##' Max-Planck Institute for Molecular Plant Physiology, Golm,197##' Germany, RIKEN Plant Science Center Yokohama, Japan, and CAS-MPG198##' Partner Institute for Computational Biology (PICB) Shanghai,199##' P.R. China200##'201##' @name pcaMethods202##' @aliases pcaMethods203##' @docType package204##' @title pcaMethods205##' @useDynLib pcaMethods206##' @author Wolfram Stacklies, Henning Redestig207NULL208209210asdsd211212213