plot_data | R Documentation |
Plot variables from meta data or from gene expression. feat_x
will be plotted on the x-axis, while feat_y
will be plotted on
on the y-axis. These variables can come from test_data or the
normalized gene expression values of a features.
plot_data(sce, feat_x = "total_counts", feat_y = "n_genes", log_x = FALSE, log_y = FALSE, color = NULL, alpha = 0.1, data_type = "test", ret = FALSE)
sce |
An SCE object. |
feat_x |
Variable of x axis to plot. |
feat_y |
Varibale of y axis to plot. |
log_x |
Boolean indicating whether to log transform the y-axis. |
log_y |
Boolean indicating whether to log transform the y-axis. |
color |
Color points by values in this column of test_data, such as Call. |
alpha |
A numeric value controlling the transparency of the points. From 0 (transparent) to 1 (no transparency). |
data_type |
Either test or all, specifying the droplets to plot |
ret |
A logical specifying whether to return the ggplot object or just print it out. |
Nothing. If return=TRUE, then return a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.