Description Usage Arguments Value
View source: R/scAI_plotting.R
visualize cells in 2D-dimensional space
1 2 3 4 |
object |
scAI object |
cell_coords |
2D embedding coordinates of cells |
color.by |
the name of the variable in pData, defining cell groups, cells are colored based on the labels |
labels.order |
defining the factor level of cell groups |
colors.use |
defining the color for each cell group |
brewer.use |
use RColorBrewer palette instead of default ggplot2 color |
xlabel |
label of x-axis |
ylabel |
label of y-axis |
title |
main title of the plot |
label.size |
font size of the legend |
cell.size |
size of the dots |
font.size |
font size |
do.label |
label the cluster in 2D space |
show.legend |
whether show the legend |
show.axes |
whether show the axes |
ggplot2 object with 2D plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.