plotQTHist {GenomicDistributions} | R Documentation

## Plot quantile-trimmed histogram

### Description

Given the results from `calcWidth`, plots a histogram with outliers trimmed.

### Usage

    plotQTHist(
      x,
      EndBarColor = "gray57",
      MiddleBarColor = "gray27",
      quantile = NULL,
      bins = NULL,
      indep = FALSE,
      numbers = FALSE
    )

### Arguments

`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).

### Details

x-axis breaks for the frequency calculations are based on the "divisions" results from helper function `calcDivisions`.

### Value

A ggplot2 plot object

### Examples

    plotQTHist(runif(500)*1000)
    plotQTHist(list(q1=runif(500)*1000, q2=runif(500)*1000))

[Package GenomicDistributions version 1.2.0 Index]