gcap.plotDistribution | R Documentation |
Draw Gene Amplicon Distribution By User Specified Class
gcap.plotDistribution( fCNA, x = NULL, x_size = 8, set_order = TRUE, set_label = TRUE, fill = TRUE, palette = c("#CCCCCC", "#0066CC", "#FFCCCC", "#CC0033"), plot = TRUE, by_gene = FALSE, genelist = NULL, bar_width = 0.9, ... )
fCNA |
a |
x |
a column name in |
x_size |
font size of x axis text. |
set_order |
set order for |
set_label |
set labels to add sample count for |
fill |
if |
palette |
color palette. |
plot |
if |
by_gene |
sow distribution for genes. |
genelist |
only listed gene will be shown. |
bar_width |
set the width of bar, when it is |
... |
other parameters passing to |
a ggplot object.
set.seed(1234) data <- data.frame( sample = sample(LETTERS[1:10], 100, replace = TRUE), class = sample(c("nofocal", "noncircular", "circular"), 100, replace = TRUE), by = sample(1:4, 100, replace = TRUE) ) p <- gcap.plotDistribution(data) p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.