Learn R Programming

provenance (version 1.5)

plot.INDSCAL: Plot an INDSCAL group configuration and source weights

Description

Given an object of class INDSCAL, generates two plots: the group configuration and the subject weights. Together, these describe a 3-way MDS model.

Usage

"plot"(x, asp = 1, pch = NA, pos = NULL, col = "black", bg = "white", cex = 1, xlab = "X", ylab = "Y", xaxt = "n", yaxt = "n", ...)

Arguments

x
an object of class INDSCAL
asp
the aspect ratio of the plot
pch
plot symbol (may be a vector)
pos
position of the sample labels relative to the plot symbols if pch != NA
col
plot colour (may be a vector)
bg
background colour (may be a vector)
cex
relative size of plot symbols
xlab
a string with the label of the x axis
ylab
a string with the label of the y axis
xaxt
if = 'y', adds ticks to the x axis
yaxt
if = 'y', adds ticks to the y axis
...
optional arguments to the generic plot function

See Also

indscal

Examples

Run this code
data(Namib)
coast <- c('N1','N2','N3','N10','N11','N12','T8','T13')
snames <- names(Namib$DZ)
pch <- rep(21,length(snames))
pch[which(snames %in% coast)] <- 22
plot(indscal(Namib$DZ,Namib$HM),pch=pch)

Run the code above in your browser using DataLab