plot.fahst | R Documentation |
Plot the graphs for Factorial Approach for Hierarchical Sorting Task data (FAHST).
## S3 method for class 'fahst'
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,
cex = 1, lab.lev=TRUE,lab.grpe = TRUE, title = NULL, habillage = "none",
habillage.lev = "none", traj = FALSE, palette = NULL, new.plot = TRUE, ...)
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 |
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 |
Returns the products factor map, the categories factor map, the levels factor map and the consumers factor map.
Marine Cadoret, Sebastien Le sebastien.le@institut-agro.fr
fahst
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.