Learn R Programming

SensoMineR (version 1.27)

plot.fasnt: Make Factorial Approach for Sorting Napping Task data (FASNT) graphs

Description

Plot the graphs for Factorial Approach for Sorting Napping Task data (FASNT).

Usage

# S3 method for fasnt
plot(x,choix="ind", axes = c(1, 2), xlim = NULL, ylim = NULL, 
    invisible = NULL, col.ind = "blue", col.var = "red", lab.ind=TRUE,lab.var=TRUE, 
	lab.coord=TRUE, lab.partial=TRUE, cex = 1,lab.grpe = TRUE, title = NULL, 
	habillage = "none", palette = NULL, new.plot = TRUE, ...)

Value

Returns the products factor map, the categories factor map, the coordinates factor map and the consumers factor map.

Arguments

x

an object of class fast

axes

a length 2 vector specifying the components to plot

choix

the graph to plot ("ind" for the products and the categories, "group" for the consumers and "partial" for the partial products)

xlim

range for the plotted 'x' values, defaulting to the range of the finite values of 'x'

ylim

range for the plotted 'y' values, defaulting to the range of the finite values of 'y'

habillage

give no color for the individuals ("none"), or color the products among a consumer (give the number of the consumer)

col.ind

a color for the products

col.var

a color for the categories

lab.ind

boolean, if TRUE, the products are labelled

lab.var

boolean, if TRUE, the categories associated with categorization are labelled

lab.coord

boolean, if TRUE, the napping variables are labelled

lab.partial

boolean, if TRUE, the partial products are labelled

invisible

string indicating if some points should not be drawn ("ind" or "var")

cex

cf. function par in the graphics package

lab.grpe

boolean, if TRUE, the consumers are labelled

title

string corresponding to the title of the graph you draw (by default NULL and a title is chosen)

palette

the color palette used to draw the points. By default colors are chosen. If you want to define the colors : palette=palette(c("black","red","blue")); or you can use: palette=palette(rainbow(30)), or in black and white for example: palette=palette(gray(seq(0,.9,len=25)))

new.plot

boolean, if TRUE, a new graphical device is created

...

further arguments passed to or from other methods

Author

Marine Cadoret, Sebastien Le sebastien.le@institut-agro.fr

See Also

fasnt

Examples

Run this code
if (FALSE) {
data(smoothies)
res.fasnt <- fasnt(smoothies, first="nappe",graph=FALSE)
plot.fasnt(res.fasnt,choix="ind",invisible="var",habillage=15,
  title="Objects colored according to the groups provided by consumer 5")
plot.fasnt(res.fasnt,choix="partial",lab.partial=FALSE)
}

Run the code above in your browser using DataLab