Description Usage Arguments Author(s) See Also Examples
Draw 1D plot of an axis from multivariate analysis. Useful for visualising an individual axis from
analyses such as PCA dudi.pca
or COA dudi.coa
.
It accepts a factor so that groups of points can be coloured.
It can also be used for graphing genes, and will only label n genes at the ends of the axis.
1 2 |
dfx |
|
ax |
Numeric, indicating column of |
classvec |
Factor, indicating sub-groupings or classes in dfx or dfx[,ax] |
hor |
Logical, indicating whether the graph should be drawn horizontal or vertically. The default is vertically. |
s.nam |
Vector. labels of dfx, The default is row.names(dfx) |
n |
Numeric. Whether all rows should be plotted, n=10 would label only the 10 variables at the end of the axis. By default all variables (row of dfx) are labelled |
scaled |
A logical indicating whether the plot should be scaled to fit. The default is TRUE |
col |
A character or vector indicating the colour(s) for points or groups of points. If points are to be coloured according to a factor, length(col) should equal length(levels(classvec)) |
width |
A vector of length 2, which is the width (of a vertical plot) or height (of a horizontal plot). This can be increased if variable labels are unreadable. The default is c(-2,1) |
... |
further arguments passed to or from other methods |
Aedin Culhane
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.