Learn R Programming

pamctdp (version 0.2.2)

plotfp: Factorial Planes from Coordinates

Description

It plots factorial planes from a coordinate table

Usage

plotfp(co,x=1,y=2,eig=NULL,cal=NULL,ucal=0,xlim=NULL,ylim=NULL,main=NULL,
                   rotx=FALSE,roty=FALSE,eti=row.names(co),
                        axislabel=TRUE,col.row="black",cex=0.8,cex.row=0.8,
                        all.point=TRUE,cframe=1.2,cex.global=1,infaxes="out")

Arguments

co
matrix or data.frame with coordinates
x
the component like horizontal axis
y
the component like vertical axis
eig
numeric with the eigenvalues
cal
matrix or data.frame with the square cosinus
ucal
quality representation threshold (percentage) in the plane . Default ucal=0
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
eti
selected row 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"
cex
global scale for the labels. Default cex=0.8
cex.row
scale for row points and row labels. Default cex.row=0.8
all.point
If if is TRUE, all points are outlined. Default all.point=TRUE
cframe
scale for graphic limits
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

Value

  • It graphs the factorial plane x,y using co and optional information of eigenvalues and representation quality of the points. If ucal > 0, only the points with the quality of representation on the plane bigger than ucal are pointed

encoding

latin1

Details

Plot the selected factorial plane.

Examples

Run this code
data(mores5)
attach(mores5)
ca <- dudi.coa(tab,scannf=FALSE,nf=4)
wibca <- witwit.model(ca,rbl5,cbl5,model="B",weight="mfa",scannf=FALSE,nf=4)
detach(mores5)
mfa <- wibca2mfa(wibca)
attach(mfa)
plotfp(colb$coor,colb$eig,main="WIBCA Column bands like MFA of Spain Mortality, First Factorial Plane")
dev.new()
plotfp(rowb$coor,rowb$eig,main="WIBCA Row bands like MFA of Spain Mortality, First Factorial Plane")

Run the code above in your browser using DataLab