It plots factorial planes from objects of class dudi
Usage
## S3 method for class 'dudi'
plot(x,ex=1,ey=2,xlim=NULL,ylim=NULL,main=NULL,rotx=FALSE,roty=FALSE,
roweti=row.names(dudi$li),coleti=row.names(dudi$co),
axislabel=TRUE,col.row="black",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",...)
sutil.grid(cgrid,scale=TRUE)
Arguments
x
object of type dudi
ex
number indentifying the factor to be used as horizontal axis. Default 1
ey
number indentifying the factor to be used as vertical axis. Default 2
xlim
the x limits (x1, x2) of the plot
ylim
the y limits of the plot
main
graphic title
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
axislabel
if it is TRUE the axis information is written
col.row
color for row points and row labels. Default "black"
col.col
color for column points and column labels. Default "blue"
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
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
cframe
scale for graphic limits
ucal
quality representation threshold (percentage) 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 infaxes="no"
...
further arguments passed to or from other methods
cgrid
internal parameter
scale
internal
Details
Plot the selected factorial plane.
sutil.grid is used by plot.dudi
Value
It graphs the factorial plane x,y using $co, $li of a "dudi" object.
If ucal > 0, the function inertia.dudi is used to calculate the quality of representation
on the plane
data(ardeche)
ca <- dudi.coa(ardeche$tab,scannf=FALSE,nf=4)
# FactoMineR style
plot.dudi(ca,ucal=40,all.point=FALSE,main="SCA of Ardeche, First Factorial Plane")
dev.new()
# ade4 style
plot.dudi(ca,ex=3,ey=4,ucal=20,all.point=FALSE,infaxes="in",main="SCA of
Ardeche, Plane 3-4")
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(FactoClass)
Loading required package: ade4
Loading required package: xtable
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/FactoClass/plot.dudi.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.dudi
> ### Title: Factorial Planes from Objects of Class dudi
> ### Aliases: plot.dudi sutil.grid
> ### Keywords: multivariate hplot
>
> ### ** Examples
>
> data(ardeche)
> ca <- dudi.coa(ardeche$tab,scannf=FALSE,nf=4)
> # FactoMineR style
> plot.dudi(ca,ucal=40,all.point=FALSE,main="SCA of Ardeche, First Factorial Plane")
> dev.new()
dev.new(): using pdf(file="Rplots849.pdf")
> # ade4 style
> plot.dudi(ca,ex=3,ey=4,ucal=20,all.point=FALSE,infaxes="in",main="SCA of
+ Ardeche, Plane 3-4")
>
>
>
>
>
> dev.off()
png
2
>