plot.MDS | R Documentation |
Plots the coordinates of a multidimensional scaling analysis as an X-Y scatter plot or ‘map’ and, if x$classical = FALSE, a Shepard plot.
## S3 method for class 'MDS'
plot(
x,
nnlines = FALSE,
pch = NA,
pos = NULL,
cex = 1,
col = "black",
bg = "white",
oma = rep(1, 4),
mar = rep(2, 4),
mgp = c(2, 1, 0),
xpd = NA,
Shepard = 2,
...
)
x |
an object of class |
nnlines |
if TRUE, draws nearest neighbour lines |
pch |
plot character (see ?plot for details). May be a vector. |
pos |
position of the sample labels relative to the plot
symbols if |
cex |
relative size of plot symbols (see |
col |
plot colour (may be a vector) |
bg |
background colour (may be a vector) |
oma |
A vector of the form |
mar |
A numerical vector of the form |
mgp |
The margin line (in |
xpd |
A logical value or |
Shepard |
either:
|
... |
optional arguments to the generic |
MDS
data(Namib)
mds <- MDS(Namib$DZ)
coast <- c('N1','N2','N3','N10','N11','N12','T8','T13')
snames <- names(Namib$DZ)
bgcol <- rep('yellow',length(snames))
bgcol[which(snames %in% coast)] <- 'red'
plot(mds,pch=21,bg=bgcol)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.