Description Usage Arguments Value Author(s) See Also Examples
Plot metric MDS with categorical information.
1 |
x |
A matrix or data frame to be plotted. |
y |
A factor or vector giving group information of columns of |
method |
The distance measure to be used. This must be one of "euclidean", "maximum",
"manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring
can be given. It is only for |
dimen |
A vector of index of dimentonal to be plotted. Only two dimentions are are allowed. |
... |
Further arguments to |
mdsplot
returns an object of class "trellis"
.
Wanchang Lin
grpplot
, panel.elli
, mds.plot.wrap
,
pcaplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## examples of 'mdsplot'
data(iris)
x <- iris[,1:4]
y <- iris[,5]
mdsplot(x,y, dimen=c(1,2),ep=2)
mdsplot(x,y, dimen=c(2,1),ep=1)
tmp <- mdsplot(x,y, ep=2, conf.level = 0.9)
tmp
## change symbol's color, type and size
mdsplot(x, y, main="IRIS DATA", cex=1.2,
auto.key=list(space="right", col=c("black","blue","red"), cex=1.2),
par.settings = list(superpose.symbol = list(col=c("black","blue","red"),
pch=c(1:3))))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.