gcap.dotplot | R Documentation |
Plot CN Mean vs. Frequency Dotplot
gcap.dotplot( fCNA, filter, by = c("gene_id", "band", "chr"), unique = FALSE, include = c("circular"), ... )
fCNA |
a fCNA object. |
filter |
a filter expression based on |
by |
the level of focal amplicons. |
unique |
if |
include |
amplicon type to include for plotting. |
... |
other parameters passing to |
a ggplot.
library(gcap) if (require("ggrepel") && require("cowplot")) { data("ascn") data = ascn # Create fake data set.seed(1234) data$sample = sample(LETTERS[1:10], nrow(data), replace = TRUE) rv = gcap.ASCNworkflow(data, outdir = tempdir(), model = "XGB11") p = gcap.dotplot(rv, filter = cn > 60) p p2 = gcap.dotplot(rv, filter = cn > 60 | N > 15, by = "band") p2 p3 = gcap.dotplot(rv, filter = cn > 60 | N > 50, by = "chr") p3 p4 = gcap.dotplot(rv, filter = cn > 60 | N > 3, by = "band", unique = TRUE) p4 }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.