View source: R/content-plots.R
plotDinuclFreq | R Documentation |
Given calcDinuclFreq
or calcDinuclFreqRef
results, this function
generates a violin plot of dinucleotide frequency
plotDinuclFreq(DNFDataTable)
DNFDataTable |
A data.table, data.frame, or a list of dinucleotide counts -
results from |
A ggplot object plotting distribution of dinucleotide content in query regions
DNFDataTable = data.table::data.table(GC = rnorm(400, mean=0.5, sd=0.1),
CG = rnorm(400, mean=0.5, sd=0.5),
AT = rnorm(400, mean=0.5, sd=1),
TA = rnorm(400, mean=0.5, sd=1.5))
DNFPlot = plotDinuclFreq(DNFDataTable)
## Not run:
query = system.file("extdata", "vistaEnhancers.bed.gz", package="GenomicDistributions")
GRquery = rtracklayer::import(query)
refAssembly = 'hg19'
DNF = calcDinuclFreqRef(GRquery, refAssembly)
DNFPlot2 = plotDinuclFreq(DNF)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.