Re: [R] plot 3d info in 2d

2011-08-10 Thread Paul Hiemstra
On 08/10/2011 10:02 AM, Andrew Halford wrote: > Hi Listers, > > Is it possible to produce an ordination plot in 2d, where bubbles represent > the location of sites (this part is easy enough) and the size of the bubbles > is proportional to the sites location in 3d space (I am stuck on this > optio

Re: [R] plot 3d info in 2d

2011-08-10 Thread S Ellison
Very easy if you note that cex in plot can be a vector. example: x <- runif(100) y<-runif(100) z<-runif(100) #shift and scale z for convenience 9the scaling is based on range 'cos we know this is in [0,1] #your mileage may vary but the principle is ) z.scaled <- 0.05 + (z-min(z))/diff(range(z

Re: [R] plot 3d info in 2d

2011-08-10 Thread Paul Hiemstra
On 08/10/2011 10:02 AM, Andrew Halford wrote: > Hi Listers, > > Is it possible to produce an ordination plot in 2d, where bubbles represent > the location of sites (this part is easy enough) and the size of the bubbles > is proportional to the sites location in 3d space (I am stuck on this > optio