boxprod: Boxplot per category with respect to a categorical variable...

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/boxprod.R

Description

Returns as many boxplots as there are categories for a given categorical variable of interest (in most cases, the product variable). The boxplots are automatically generated for all the quantitative variables (in our type of applications, variables are often sensory descriptors).

Usage

1
2
boxprod(donnee, col.p, firstvar, lastvar = ncol(donnee), 
    numr = 2, numc = 2)

Arguments

donnee

a data frame

col.p

the position of the categorical variable of interest

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 boxplots per row (by default 2)

numc

the number of boxplots per column (by default 2)

Details

Missing values are ignored when forming boxplots.

Author(s)

Fran<e7>ois Husson Fran<e7>ois.Husson@agrocampus-rennes.fr
S<e9>bastien L<ea> Sebastien.Le@agrocampus-rennes.fr

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
Chambers, J. M., Cleveland, W. S., Kleiner, B. and Tukey, P. A. (1983) Graphical Methods for Data Analysis. Wadsworth & Brooks/Cole.

See Also

boxplot which does the computation, bxp for the plotting and more examples; and stripchart for an alternative (with small data sets).

Examples

1
2
data(chocolates)
boxprod(sensochoc, col.p = 4, firstvar = 5, numr = 2, numc = 2)

Example output

Loading required package: FactoMineR
dev.new(): using pdf(file="Rplots1.pdf")
dev.new(): using pdf(file="Rplots2.pdf")

SensoMineR documentation built on May 2, 2019, 5:56 p.m.