plot.fahst: Make Factorial Approach for Hierarchical Sorting Task data...

Description Usage Arguments Value Author(s) See Also Examples

Description

Plot the graphs for Factorial Approach for Hierarchical Sorting Task data (FAHST).

Usage

1
2
3
4
5
plot.fahst(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, cex = 1,
    lab.lev=TRUE,lab.grpe = TRUE, title = NULL, habillage = "none", habillage.lev = "none",
    traj = FALSE, palette = NULL, new.plot = TRUE, ...)
    

Arguments

x

an object of class fahst

choix

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

axes

a length 2 vector specifying the components to plot

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'

invisible

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

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

cex

cf. function par in the graphics package

lab.lev

boolean, if TRUE, the levels are labelled

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)

habillage

give no color for the individuals ("none"), or color the products according to one of the levels of a consumer (give the number of the colomn corresponding to the level)

habillage.lev

give no color for the levels ("none"), color the levels according to consumer ("subject") or color the levels according to the number of the level ("level")

traj

boolean, if TRUE, trajectories are drawn between levels of the same consumer

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

Value

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

Author(s)

Marine Cadoret, S\'ebastien L\^e sebastien.le@agrocampus-ouest.fr

See Also

fahst

Examples

1
2
3
4
5
6
7
8
## Not run: 
data(cards)
group<-c(2,3,3,2,2,4,2,3,2,1,3,2,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3)
res.fahst <- fahst(cards,group,graph=FALSE)
plot.fahst(res.fahst,choix="ind",invisible="var",habillage=2,title="Cards colored according to level 2 of subject 1")
plot.fahst(res.fahst,choix="level",traj=TRUE)

## End(Not run)

Example output

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

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