plot.parwwm: Superimposed Representacion on Factorial Planes from Objects...

Description Usage Arguments Details Value Author(s) Examples

View source: R/plot.parwwm.R

Description

It plots partial points in factorial planes from objects of class parwwm. We select each global point with a clic. With a clic on the top of the graphic the selection is stopped

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'parwwm'
plot(x,xy=c(1,2),graph="rows",namesg=NULL,
                        xlim=NULL,ylim=NULL,main=NULL,
                        rotx=FALSE,roty=FALSE,roweti=row.names(dudi$li),
                        coleti=row.names(dudi$co),axislabel=TRUE,asp=1,
			grid=TRUE,col.row="black",col.col="black",
			cex=0.8,cex.row=0.8,cex.col=0.8,cframe=1.2,
			cex.global=1,col.own= c("darkred","darkgreen" ,
				"darkblue", "darkmagenta","red",
				"darkorange","green3",palette()),...)

Arguments

x

object of type parwwm

xy

a length 2 vector specifying the components to plot

graph

select "rows" or "colums"

namesg

group names

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

asp

the y/x aspect ratio, see 'plot.window'

grid

if it is TRUE a grid is plotted

col.row

color for row points and row labels. Default "black"

col.col

color for column points and column 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

cex.col

scale for column points and column labels. Default cex.col=0.8

cframe

scale for graphic limits

cex.global

scale for the label sizes

col.own

the colors used to draw the partial points by groups

...

further arguments passed to or from other methods

Details

Draw a factorial plane with the partial points and the centers of gravity. The graph is interactive and clicking on a point will draw the partial points, if you click on a point for which the partial points are yet drawn, the partial points are deleted. To stop the interactive plot, click in the top of the graph)

Value

Returns a list containing:

global

global coordinates

partial

partial coordinates of selected global points

xlim

the ended value of xlim

ylim

the ended value of ylim

Author(s)

Campo Elias Pardo cepardot@unal.edu.co

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

Examples

1
2
3
4
5
6
7
8
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,xy=c(3,4),ucal=20,all.point=FALSE,infaxes="in",main="SCA of
Ardeche, Plane 3-4")

Example output

Loading required package: ade4
Loading required package: xtable
Loading required package: FactoClass
Loading required package: ggplot2
Loading required package: ggrepel
Loading required package: scatterplot3d

pamctdp documentation built on May 1, 2019, 10:19 p.m.

Related to plot.parwwm in pamctdp...