Learn R Programming

HistogramTools (version 0.3.2)

PlotRelativeFrequency: Plot Relative Frequency Histogram

Description

Produces a relative frequency histogram.

Usage

PlotRelativeFrequency(x, ylab="Relative Frequency", ...)

Arguments

x
A "histogram" object (created by hist) representing a pre-binned dataset.
ylab
y-axis label for the plot.
...
Additional parameters are passed to plot().

Details

The default plot.histogram function supports Frequency or Density plots, but does not provide a way to produce a relative frequency histogram. This function plots this type of histogram.

See Also

histogramtools-package, hist, plot.histogram.

Examples

Run this code
x <- runif(100)
h <- hist(x, plot=FALSE)
PlotRelativeFrequency(h)

Run the code above in your browser using DataLab