It plots factorial planes from objects of class dudi
# S3 method for 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,font.col="plain",
font.row="plain",col.row="black",col.col="blue",
alpha.col=1,alpha.row=1,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",gg=FALSE,...)
sutil.grid(cgrid,scale=TRUE)
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
object of type dudi
number indentifying the factor to be used as horizontal axis. Default 1
number indentifying the factor to be used as vertical axis. Default 2
the x limits (x1, x2) of the plot
the y limits of the plot
graphic title
TRUE if you want change the sign of the horizontal coordinates. Default FALSE
TRUE if you want change the sign of the vertical coordinates. Default FALSE
selected row points for the graphic. Default all points
selected column points for the graphic. Default all points
type of font for row labels. Default "plain"
type of font for column labels. Default "plain"
if it is TRUE the axis information is written
color for row points and row labels. Default "black"
color for column points and column labels. Default "blue"
transparency for row points and row labels. Default cex.ilu=1
transparency for column points and column labels. Default cex.ilu=1
global scale for the labels. Default cex=0.8
scale for row points and row labels. Default cex.row=0.8
scale for column points and column labels. Default cex.col=0.8
If if is TRUE, all points are outlined. Default all.point=TRUE
if it is TRUE the row points are outlined. Default TRUE
if it is TRUE the column points are outlined. Default TRUE
scale for graphic limits
quality representation threshold (percentage) in the plane . Default ucal=0
scale for the label sizes
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"
If TRUE the version ggplot ggrepel is perfomance. Default FALSE
further arguments passed to or from other methods
internal parameter
internal
Campo Elias Pardo cepardot@unal.edu.co and Jhonathan Medina jmedinau@unal.edu.co
Plot the selected factorial plane.
sutil.grid
is used by plot.dudi
data(Bogota)
ca <- dudi.coa(Bogota[,2:7],scannf=FALSE,nf=4)
# with ggplot2 and ggrepel
plot(ca,gg=TRUE)
dev.new()
# ade4 style
plot.dudi(ca,ex=3,ey=4,ucal=0.2,all.point=FALSE,infaxes="in")
Run the code above in your browser using DataLab