Learn R Programming

SensoMineR (version 1.20)

histprod: Histogram for each descriptor

Description

Computes automatically histograms for a set of quantitative variables.

Usage

histprod(donnee, firstvar, lastvar = ncol(donnee), numr = 2, numc = 2, adjust = 1)

Arguments

donnee
a data frame
firstvar
the position of the first endogenous variable
lastvar
the position of the last endogenous variable (by default the last column of donnee)
numr
the number of histograms per row (by default 2)
numc
the number of histograms per column (by default 2)
adjust
the bandwidth used is actually 'adjust*bw'. This makes it easy to specify values like "half the default" bandwidth.

Details

Displays histograms with a common Y-axis as well as the local estimator of the density for each descriptor, hence the adjust parameter to fill in. Displays also the normal distribution with mean and variance the respective values estimated for each descriptor.

See Also

density, hist

Examples

Run this code
data(chocolates)
histprod(sensochoc, firstvar = 5, lastvar = 10)

Run the code above in your browser using DataLab