Description Usage Arguments Value Examples
Plot a tSNE or umap colored by feature.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
data |
input data |
x |
x variable |
y |
y variable |
feature |
feature to color by |
legend_name |
legend name to display, defaults to no name |
c_cols |
character vector of colors to build color gradient
for continuous values, defaults to |
d_cols |
character vector of colors for discrete values. defaults to RColorBrewer paired palette |
pt_size |
point size |
alpha_col |
whether to refer to data column for alpha values |
group_col |
group by another column instead of feature, useful for labels |
scale_limits |
defaults to min = 0, max = max(data$x), otherwise a two-element numeric vector indicating min and max to plot |
do_label |
whether to label each cluster at median center |
do_legend |
whether to draw legend |
do_repel |
whether to use ggrepel on labels |
ggplot object, cells projected by dr, colored by feature
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.