plotDimRed | R Documentation |
Generate a plot from a feature matrix
plotDimRed(
X,
dimRedFun = getDimRedCoords.pca,
annot = NULL,
colorCol = NULL,
shapeCol = NULL,
colScheme = NULL,
ptSize = 3,
addLabels = FALSE,
addDensity = FALSE,
annot.text = NULL,
...
)
X |
feature matrix containing one row for each observation and one column for each feature |
dimRedFun |
function to do dimension reduction. E.g. |
annot |
annotation matrix with the same number of rows as |
colorCol |
name or index in the annotation matrix ( |
shapeCol |
name or index in the annotation matrix ( |
colScheme |
color sheme to be used in coloring the points |
ptSize |
size of the points in the scatterplot |
addLabels |
should observation labels be added to each point |
addDensity |
should Gaussian Kernel density estimation be performed and the contour lines plotted for each color group |
annot.text |
optional text to be added in the lower right corner of the plot |
... |
arguments to be passed on to |
a ggplot2
object containing the dimension reduction plot
Fabian Mueller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.