plotfp | R Documentation |
It plots factorial planes from a coordinate table
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",asp=1,gg=FALSE)
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 |
asp |
the y/x aspect ratio |
gg |
If TRUE the version ggplot ggrepel is perfomance. Default FALSE |
Plot the selected factorial plane.
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
Campo Elias Pardo cepardot@unal.edu.co and Jhonathan Medina jmedinau@unal.edu.co
data(Bogota)
ca <- dudi.coa(Bogota[,2:7],scannf=FALSE,nf=2)
# ade4 style
plotfp(ca$li,eig=ca$eig,main="First Factorial Plane",infaxes="in")
# with ggplot2 and ggrepel
plotfp(ca$li,eig=ca$eig,main="First Factorial Plane",gg=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.