targetGeneSpectrumPlot | R Documentation |
A diagnostic function that plots the gene type of the hosting gene for
each binding site. The function assignToGenes
is expected to be
executed prior to calling this plot function.
targetGeneSpectrumPlot(object, showNGroups = 5, text.size = 4)
object |
a |
showNGroups |
numeric; the number of different gene types to show |
text.size |
numeric; the size of the text elments on the plot |
a plot of type ggplot
assignToGenes
geneOverlapsPlot
# load clip data
files <- system.file("extdata", package="BindingSiteFinder")
load(list.files(files, pattern = ".rda$", full.names = TRUE))
load(list.files(files, pattern = ".rds$", full.names = TRUE)[1])
bds = makeBindingSites(object = bds, bsSize = 9)
bds = assignToGenes(bds, anno.genes = gns)
targetGeneSpectrumPlot(bds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.