Last data update: 2014.03.03

R: Factorial Planes from Coordinates
plotfpR Documentation

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",asp=1)

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 infaxes="no"

asp

the y/x aspect ratio

Details

Plot the selected factorial plane.

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

Author(s)

Campo Elias Pardo cepardot@unal.edu.co

http://www.docentes.unal.edu.co/cepardot

Examples

data(Bogota)
ca <- dudi.coa(Bogota[,2:7],scannf=FALSE,nf=2)
plotfp(ca$li,eig=ca$eig,main="First Factorial Plane")

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/plotfp.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotfp
> ### Title: Factorial Planes from Coordinates
> ### Aliases: plotfp
> ### Keywords: multivariate hplot
> 
> ### ** Examples
> 
> data(Bogota)
> ca <- dudi.coa(Bogota[,2:7],scannf=FALSE,nf=2)
> plotfp(ca$li,eig=ca$eig,main="First Factorial Plane")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>