View source: R/plotFactoClass.R
plotFactoClass | R Documentation |
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.
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,gg=FALSE)
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 |
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 |
cstar |
length of the rays between the centroids of the classes and their points |
gg |
If TRUE the version ggplot ggrepel is perfomance. Default FALSE |
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
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.
Campo Elias Pardo cepardot@unal.edu.co Pedro Cesar del Campo pcdelcampon@unal.edu.co,
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.