R: Graph xy plot of variable (gene) projections from PCA or COA....
plotgenes
R Documentation
Graph xy plot of variable (gene) projections from PCA or COA. Only label variables at ends of axes
Description
Graph xy plot of variables but only label variables at ends of X and Y axes. Useful for graphing genes
coordinates ($co) resulting from PCA or COA of microarray data.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(made4)
Loading required package: ade4
Loading required package: RColorBrewer
Loading required package: gplots
Attaching package: 'gplots'
The following object is masked from 'package:stats':
lowess
Loading required package: scatterplot3d
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/made4/plotgenes.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotgenes
> ### Title: Graph xy plot of variable (gene) projections from PCA or COA.
> ### Only label variables at ends of axes
> ### Aliases: plotgenes
> ### Keywords: multivariate hplot
>
> ### ** Examples
>
> data(khan)
> if (require(ade4, quiet = TRUE)) {
+ khan.ord<-ord(khan$train, classvec=khan$train.classes)
+ }
> par(mfrow=c(2,2))
> #s.var(khan.ord$co, col=as.numeric(khan$train.classes), clabel=0.8)
> plotgenes(khan.ord, colpoints="red")
> plotgenes(khan.ord, colpoints="red", genelabels=khan$annotation$Symbol)
> plotgenes(khan.ord, colpoints="gray", genelabels=khan$annotation$Symbol,boxes=FALSE)
>
>
>
>
>
> dev.off()
null device
1
>