Learn R Programming

plotrix (version 2.5-2)

multhist: Plot a multiple histogram, as a barplot

Description

Given a list, plots a side-by-side barplot containing the histograms of the elements

Usage

multhist(x,beside=TRUE,freq=NULL,probability=!freq,plot.it=TRUE,...)

Arguments

x
a list of numeric vectors
beside
plot histogram bars for groups side-by-side?
freq
logical; if 'TRUE', the histogram graphic is a representation of frequencies, the 'counts' component of the result; if 'FALSE', probability densities, component 'density', are plotted (so that the histogram has a tot
probability
an alias for '!freq', for S compatibility
plot.it
Whether or not to display the histogram.
...
additional arguments to hist or barplot

Value

  • the breaks and the values for the histograms.

See Also

hist,barplot

Examples

Run this code
l <- list(runif(10)*10,1:10,c(1,1,1,1,4,8))
 multhist(l)

Run the code above in your browser using DataLab