plot2D | R Documentation |
Generate list of ggplot figures of umap/tsne on the features If some feature is not in the meta, will have a NULL.
plot2D( embed, meta, checkRowName = FALSE, names = c("cluster", "tsse", "log10UMI"), discretes = c(TRUE, FALSE, FALSE), legends = c(FALSE, TRUE, TRUE), addLabels = c(TRUE, FALSE, FALSE), n = 10000, ... )
embed |
data.frame cell by (x, y) dim, rownames are cells. |
meta |
data.frame cell by features, rownames are cells, colnames are features. |
checkRowName |
bool, default FALSE |
names |
character vector, features to be draw Default is c("cluster", "tsse", "logumi") |
discretes |
bool vector, default is c(T, F, F) |
legends |
bool vector, default is c(F, T, T). |
addLabels |
bool vectors, default is c(T, F, F). |
n |
integer, number of down samples, default 10,000 |
... |
parameters ggPoint, but seems no use there. |
list of ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.