plot.fast | R Documentation |
Plot the graphs for Factorial Approach for Sorting Task data (FAST).
## S3 method for class 'fast'
plot(x,choix="ind", axes = c(1, 2), xlim = NULL, ylim = NULL, invisible = NULL,
col.ind = "blue", col.var = "red", col.quali.sup = "darkred",
col.ind.sup ="darkblue", col.quanti.sup = "black",label = "all",
cex = 1,lab.grpe = TRUE, title = NULL, habillage = "none", palette = NULL,
new.plot = TRUE, ...)
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, "var" for the vcategories, "group" for the consumers) |
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 |
col.quali.sup |
a color for the supplementary categories |
col.ind.sup |
a color for the supplementary individuals |
col.quanti.sup |
a color for the quantitative supplementary variables |
label |
a list of character for the elements which are labelled (by default, all the elements are labelled ("ind", "var")) |
invisible |
string indicating if some points should not be drawn ("ind" or "var") |
cex |
cf. function |
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 |
Returns the products factor map, the categories factor map and the consumers factor map.
Marine Cadoret, Sebastien Le sebastien.le@institut-agro.fr
fast
## Not run:
data(perfume)
res.fast <- fast(perfume,graph=FALSE)
plot.fast(res.fast,choix="ind",invisible="var",habillage=5)
plot.fast(res.fast,choix="group")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.