Usage
multi.hist(x,nrow=NULL,ncol=NULL,density=TRUE,freq=FALSE,bcol="white",
dcol=c("black","black"),dlty=c("dashed","dotted"),
main="Histogram, Density, and Normal Fit",...)
histBy(x,var,group,density=TRUE,alpha=.5,breaks=21,col,xlab,
main="Histograms by group",...)
Arguments
var
The variable in x to plot in histBy
group
The name of the variable in x to use as the grouping variable
nrow
number of rows in the plot
ncol
number of columns in the plot
density
density=TRUE, show the normal fits and density distributions
freq
freq=FALSE shows probability densities and density distribution, freq=TRUE shows frequencies
dcol
The color(s) for the normal and the density fits. Defaults to black.
dlty
The line type (lty) of the normal and density fits. (specify the optional graphic parameter lwd to change the line size)
xlab
Label for the x variable
breaks
The number of breaks in histBy (see hist)
alpha
The degree of transparency of the overlapping bars in histBy
col
A vector of colors in histBy (defaults to the rainbow)
...
additional graphic parameters (e.g., col)