Last data update: 2014.03.03

R: Histogram for each descriptor
histprodR Documentation

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.

Author(s)

S Le

See Also

density, hist

Examples

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SensoMineR)
Loading required package: FactoMineR
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SensoMineR/histprod.Rd_%03d_medium.png", width=480, height=480)
> ### Name: histprod
> ### Title: Histogram for each descriptor
> ### Aliases: histprod
> ### Keywords: univar
> 
> ### ** Examples
> 
> data(chocolates)
> histprod(sensochoc, firstvar = 5, lastvar = 10)
Error in dev.new() : no suitable unused file name for pdf()
Calls: histprod -> dev.new
Execution halted