Description Usage Arguments Details Examples
This function will draw a distribution for a given value
1 2 3 4 5 6 7 8 9 | plot_density(
input,
val,
title = "",
color_by = "NA",
statistic = "mean",
log = T,
type = "density"
)
|
input |
the input ex_sc |
val |
Either "UMI_sum" or a gene name |
title |
The title of the plot |
color_by |
The metadata in pData that will be used to break the distributions into groups. Can be left blank. |
statistic |
Either the "mean" or "median" can be calculated |
This will draw a UMI distribution for a given value, broken into groups if color_by != "NA"
1 | draw_density(input = ex_sc_example, val = "UMI_sum", color_by = "Cluster", statistic = "mean")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.