0

I'm making a one-dimensional rescaling using the metaMDS function from the vegan package as follows:

mydata <- data.frame(X = sample(1:50), Y = sample(1:50), Z = sample(1:50))
mds <- metaMDS(mydata, distance="euclidian", autotransform=FALSE, k=1)

(This example has just random data, and may not converge, but since the point here is the visualisation, it doesn't matter.)

When I plot this (plot(mds)), I get a nice vertical axis with the original data points and the data dimensions. However, I would like to have the plot rotated so that the axis is horizontal but the labels are still oriented to be vertically readable.

How can I plot a one-dimensional MDS result from metaMDS as a horizontal figure?

Fabian Fagerholm
  • 4,099
  • 1
  • 35
  • 45
  • I don't think that's currently possible "out of the box". – Roman Luštrik Jan 04 '14 at 09:39
  • Can you provide some data? – agstudy Jan 04 '14 at 10:15
  • I think you'll have to custumize `linestack()` for your needs. – EDi Jan 04 '14 at 10:44
  • agstudy: edited the post to provide some data. EDi: any ideas on how to do that? – Fabian Fagerholm Jan 04 '14 at 13:12
  • Where do you need that graph? If you need it in an external application, can you rotate the graph? Implementing this behaviour is not too difficult, but it is boring and adds a large number of dull lines of code. I considered doing this once, but I lost my motivation. Contributions to vegan are appreciated and will be incorporated crediting the author. – Jari Oksanen Jan 06 '14 at 18:06

0 Answers0