plotQTHist | R Documentation |
Given the results from calcWidth
, plots a histogram with
outliers trimmed.
plotQTHist(
x,
EndBarColor = "gray57",
MiddleBarColor = "gray27",
quantThresh = NULL,
bins = NULL,
indep = FALSE,
numbers = FALSE
)
x |
Data values to plot - vector or list of vectors |
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) |
quantThresh |
Quantile of data to be contained in each end bar (optional) quantThresh values 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
regWidths = calcWidth(vistaEnhancers)
qtHist = plotQTHist(regWidths)
qtHist2 = plotQTHist(regWidths, quantThresh=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.