View source: R/plot-histogram.R
plotHistogram | R Documentation |
Producing Histograms
plotHistogram(
data = NULL,
metaData = NULL,
x = NULL,
dataMapping = NULL,
frequency = NULL,
bins = NULL,
binwidth = NULL,
stack = NULL,
distribution = NULL,
plotConfiguration = NULL,
plotObject = NULL
)
data |
A data.frame to use for plot. |
metaData |
A named list of information about |
x |
Numeric values to plot along the |
dataMapping |
A |
frequency |
logical defining if histogram displays a frequency in y axis |
bins |
Number or edges of bins.
If |
binwidth |
Numerical value of defining the width of each bin.
If defined, |
stack |
Logical defining for multiple histograms if their bars are stacked
Default value, |
distribution |
Name of distribution to fit to the data.
Only 2 distributions are currently available: |
plotConfiguration |
An optional |
plotObject |
An optional |
A ggplot
object
For examples, see: https://www.open-systems-pharmacology.org/TLF-Library/articles/histogram.html
Other molecule plots:
plotBoxWhisker()
,
plotCumulativeTimeProfile()
,
plotDDIRatio()
,
plotGrid()
,
plotObsVsPred()
,
plotObservedTimeProfile()
,
plotPKRatio()
,
plotPieChart()
,
plotQQ()
,
plotResVsPred()
,
plotResVsTime()
,
plotSimulatedTimeProfile()
,
plotTimeProfile()
,
plotTornado()
# Produce histogram of normally distributed data
plotHistogram(x = rnorm(100))
# Produce histogram of normally distributed data normalized in y axis
plotHistogram(x = rnorm(100), frequency = TRUE)
# Produce histogram of normally distributed data with many bins
plotHistogram(x = rlnorm(100), bins = 21)
# Produce histogram of fitted normally distributed data
plotHistogram(x = rlnorm(100), distribution = "normal")
# Produce histogram of fitted normally distributed data
plotHistogram(x = rlnorm(100), distribution = "normal", frequency = TRUE, stack = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.