multi.hist {psych} | R Documentation |
Given a matrix or data.frame, produce histograms for each variable in a "matrix" form. Include normal fits and density distributions for each plot.
The number of rows and columns may be specified, or calculated.
May be used for single variables.
multi.hist(x,nrow=NULL, ncol=NULL,density=TRUE,freq=FALSE,main="Histogram, Density, and Normal Fit",...)
x |
matrix or data.frame |
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 |
main |
title for each panel |
... |
additional graphic parameters (e.g., col) |
William Revelle
bi.bars
for drawing pairwise histograms
multi.hist(sat.act) multi.hist(sat.act,col="red") multi.hist(sat.act,freq=TRUE) #show the frequency plot multi.hist(sat.act,nrow=2)