psych (version 1.0-97)

multi.hist: Multiple histograms with density and normal fits on one page

Description

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.

Usage

multi.hist(x,nrow=NULL, ncol=NULL,density=TRUE,main="Histogram, Density, and Normal Fit")

Arguments

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
main
title for each panel

See Also

bi.bars for drawing pairwise histograms

Examples

Run this code
multi.hist(attitude[-1])

Run the code above in your browser using DataCamp Workspace