plotQTHist {GenomicDistributions} | R Documentation |
Given the results from calcWidth
, plots a histogram with
outliers trimmed.
plotQTHist( x, EndBarColor = "gray57", MiddleBarColor = "gray27", quantile = NULL, bins = NULL, indep = FALSE, numbers = FALSE )
x |
Data values to plot |
EndBarColor |
Color for the quantile bars on both ends of the graph (optional) |
MiddleBarColor |
Color for the bars in the middle of the graph (optional) |
quantile |
Quantile of data to be contained in each end bar (optional) Quantiles must be under .2, optimal size is under .1 |
bins |
The number of bins for the histogram to allocate data to. (optional) |
indep |
logical value which returns a list of plots that have had their bins calculated independently; the normal version will plot them on the same x and y axis. |
numbers |
a logical indicating whether the raw numbers should be displayed, rather than percentages (optional). |
x-axis breaks for the frequency calculations are based on the "divisions"
results from helper function calcDivisions
.
A ggplot2 plot object
plotQTHist(runif(500)*1000) plotQTHist(list(q1=runif(500)*1000, q2=runif(500)*1000))