On Tue, Oct 26, 2010 at 3:13 PM, Daisy Englert Duursma <daisy.duur...@gmail.com> wrote: > There are several ways to do this but the package ggplot2 > > library(ggplot2) > qplot(displ,hwy,data=mpg,colour=factor(cyl)) > >
That can of course be done also using the standard plot command (substitute variable names as necessary): x = elevation y = richness color = as.numeric(as.factor(adminArea)) plot(x,y, col = color, bg = color) Peter ______________________________________________ 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.