Learn R Programming

pamctdp (version 0.2.2)

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

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

## 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

Value

  • Returns a list containing:
  • globalglobal coordinates
  • partialpartial coordinates of selected global points
  • xlimthe ended value of xlim
  • ylimthe ended value of ylim

encoding

latin1

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)

Examples

Run this code
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")

Run the code above in your browser using DataLab