Learn R Programming

FactoClass (version 1.0.9)

plotFactoClass: Factorial Planes Showing the Classes

Description

For objects of class FactoClass it graphs a factorial plane showing the center of gravity of the cluster, and identifying with colors the cluster to which each element belongs.

Usage

plotFactoClass(FC,x=1,y=2,xlim=NULL,ylim=NULL,rotx=FALSE,roty=FALSE,
                roweti=row.names(dudi$li),coleti=row.names(dudi$co),
                titre=NULL,axislabel=TRUE,col.row=1:FC$k, 
                col.col="blue",cex=0.8,cex.row=0.8,cex.col=0.8,
                all.point=TRUE,Trow=TRUE,Tcol=TRUE,cframe=1.2,ucal=0,
                cex.global=1,infaxes="out",
                nclus=paste("cl", 1:FC$k, sep=""),
                cex.clu=cex.row,cstar=1 )

Arguments

FC
object of class FactoClass.
x
number indentifying the factor to be used as horizontal axis. Default x=1
y
number indentifying the factor to be used as vertical axis. Default y=2
xlim
the x limits (x1, x2) of the plot
ylim
the y limits of the plot
rotx
TRUE if you want change the sign of the horizontal coordinates (default FALSE).
roty
TRUE if you want change the sign of the vertical coordinates (default FALSE).
roweti
selected row points for the graphic. Default all points.
coleti
selected column points for the graphic. Default all points.
titre
graphics title.
axislabel
if it is TRUE the axis information is written.
col.row
color for row points and row labels. Default 1:FC$k.
col.col
color for column points and column labels. Default "grey55".
cex
global scale for the labels. Default cex=0.8.
cex.row
scale for row points and row labels. Default cex.row=0.8.
cex.col
scale for column points and column labels. Default cex.col=0.8.
cex.clu
scale for cluster points and cluster labels. (default cex.row).
all.point
if if is TRUE, all points are outlined. Default all.point=TRUE.
Trow
if it is TRUE the row points are outlined. Default TRUE.
Tcol
if it is TRUE the column points are outlined. Default TRUE.
nclus
labels for the clusters (default cl1, cl2, ...
cframe
scale for graphics limits
ucal
quality Representation Threshold in the plane. Default ucal=0
cex.global
scale for the label sizes
infaxes
place to put the axes information: "out","in","no". Default infaxes="out". If infaxes="out" the graphic is similar to FactoMineR graphics, otherwise the style is similar to the one in ade4, without axes information when
cstar
length of the rays between the centroids of the classes and their points

Value

  • It draws the factorial plane x, y using $co, $li of the object of class FactoClass. If ucal > 0, the function inertia.dudi is used to calculate the quality of representation in the plane.

encoding

latin1

Details

It draws the factorial plane with the clusters. Only for objects FactoClass see FactoClass. The factorial plane is drawn with planfac and the classes are projected with s.class of ade4

Examples

Run this code
data(Bogota)
Bog.act <- Bogota[-1]
Bog.ilu <- Bogota[ 1]

FC.Bogota<-FactoClass(Bog.act, dudi.coa,Bog.ilu,nf=2,nfcl=5,k.clust=5,scanFC=FALSE)

plotFactoClass(FC.Bogota,titre="First Factorial Plane from the SCA of Bogota's Blocks",
     col.row=c("maroon2","orchid4","darkgoldenrod2","dark red","aquamarine4"))

Run the code above in your browser using DataLab