plotEmbeddings | R Documentation |
Plot panel of specified embeddings
plotEmbeddings(
embeddings,
groups = NULL,
colors = NULL,
ncol = NULL,
nrow = NULL,
raster = FALSE,
raster.dpi = 300,
panel.size = NULL,
adjust.func = NULL,
title.size = 6,
adj.list = NULL,
subset = NULL,
return.plotlist = FALSE,
...
)
embeddings |
list of two-column matrices with (x, y) coordinates of the embeddings. Each mutrix must have cell names in rownames. |
groups |
vector of cluster labels, names contain cell names (default=NULL) |
colors |
vector of numbers, which must be shown with point colors, names contain cell names (default=NULL). This argument is ignored if groups are provided. |
ncol |
number of columns in the panel (default=NULL) |
nrow |
number of rows in the panel (default=NULL) |
raster |
boolean whether layer with the points be rasterized (default=FALSE). Setting of this argument to TRUE is useful when you need to export a plot with large number of points |
raster.dpi |
dpi of the rasterized plot. (default=300). Ignored if raster == FALSE. |
panel.size |
vector with two numbers, which specified (width, height) of the panel in inches (default=NULL). Ignored if raster is FALSE. |
adjust.func |
function to adjust plots before combining them to single panel (default=NULL). Can be used, for example, to provide color pallette of guides of the plots. |
subset |
a subset of cells to show (vector of cell names) (default=NULL) |
return.plotlist |
boolean Whether to return a list of ggplot objects instead of a combined plot (default=FALSE) |
... |
Arguments passed on to
|
ggplot2 object with the panel of plots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.