Description Usage Arguments Details Examples
View source: R/plot_faust_count.R
Saves plots of counts to project_path/faustData/plotData/pop_stats
for specified FAUST-identified subsets.
1 2 3 4 5 6 7 8 9 10 11 12 |
project_path |
character. FAUST project directory. |
pop |
|
breaks |
numeric vector. If supplied, then this is the breaks
for the x-axis. If not supplied, then the default breaks are used of
|
trans_x |
|
p_width |
|
p_height |
|
exhaustive |
logical. If |
limitsize |
logical. If |
The key parameter is pop
. If pop
is a list,
then each element is treated as a population for which counts
are required on aggregate (rather than for individual subsets
of that population). If pop
is a character vector, then
it is treated as a population for which counts are required for
individual subsets.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | project_path <- usethis::proj_path(ext = "/inst/extdata")
# plot all subsets of pop, as it is a character vector
pop <- c("CD3" = "+", "CD4" = "+", "CD8-IgD" = "-",
"CD20" = "-", "CD33" = "-", "CD14" = "-",
"TCRgd-CD19" = "-")
plot_faust_count(project_path = project_path,
pop = pop)
# plot counts of cells matching annotation of each
# element in pop, as pop is a list
pop <- list(c("CD3" = "+", "CD4" = "+", "CD8-IgD" = "-",
"CD20" = "-", "CD33" = "-", "CD14" = "-",
"TCRgd-CD19" = "-"),
c("CD3" = "+", "CD4" = "-", "CD8-IgD" = "+",
"CD20" = "-", "CD33" = "-", "CD14" = "-",
"TCRgd-CD19" = "-"))
plot_faust_count(project_path = project_path,
pop = pop)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.