> plotmatrix(d[,3:6]) > > I would like to either have a colour or more preferably a shape to > correspond to Site > this is what I have tried (along with many other combinations) > plotmatrix(nmds.bug[,3:6])+scale_shape(nmds.bug, shape=Site, pch=1:12)
There's not really any easy way to do this in the current implementation of plotmatrix. I'm aiming to rewrite it to work more like qplot, but that's still some ways away. Hadley -- http://had.co.nz/ ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.