随笔分类 - R
heatmap
摘要:heatmap 热图是一种有效的数据可视化方法,一般借助矩阵数据间相关性作图。exampleData quantile(evar,0.75),]install.packages("gplots")library(gplots)heatmap.2(mostVariable,trace="none",col=greenred(10))heatmap.2(mostVariable,trace="none",col=greenred(10),ColSideColors=bluered(5))ord <- order(rowSums(ab
阅读全文
Ch16 Advanced graphics (一 ggplot)
摘要:16.3 The ggplot2 packagehttp://had.co.nz/ggplot2The ggplot2 package implements a system for creating graphics in R based on a comprehensive and coherent grammar. This provides a consistency to graph creation often lacking in R, and allows the user to create graph types that are innovative and novel.
阅读全文
Ch16 Advanced graphics (一 lattice)
摘要:Ch16 Advanced graphicsThe grid graphics system provides low-level access to graphic primitives, giving programmers a great deal of flexibility in the creation of graphic output. The lattice package provides an intuitive approach for examining multivariate relationships through conditional 1-, 2-, o.
阅读全文
Ch12 Resampling statistics and bootstrapping
摘要:Ch12 Resampling statistics and bootstrappingPermutation testsPermutation tests, also called randomization or re-randomization tests.Ten subjects have been randomlyassigned to one of two treatment conditions(A or B) and an outcome variable (score) has been recorded.Is there enough evidence to conclud
阅读全文
Creating publication-quality output
摘要:Creating publication-quality outputThe Sweave package allows you to embed R code and output in LaTeX documents, in order to produce high-end typeset reports in PDF, PostScript, and DVI formats. Sweave is an elegant, precise, and highly flexible system,but it requires the author to be conversant with
阅读全文
Working with large datasets
摘要:Working with large datasetsThere are three issues to consider when working with large datasets:(a) efficient programming to speed execution, (b) storing data externally to limit memory issues,(c) using specialized statistical routines designed to efficiently analyze massive amounts of data.Efficient
阅读全文
Updating an R installation
摘要:Updating an R installationupdate.packages() function can be used to download and install the most recent version of a contributed package.http://cran.r-project.org/binThe installed.packages() function is used to save a list of packages to a location outside of the R director y tree, and then the lis
阅读全文
浙公网安备 33010602011771号