Re: [R] Colour points in plot according to third variable

2010-07-29 Thread Jannis
check out the Plotrix package and the color.scale() or similar functions. Henrique Dallazuanna schrieb: Try this: library(RColorBrewer) plot(iris$Sepal.Length, col = as.character(cut(iris$Sepal.Length, c(4,6,7,8), labels = brewer.pal(3, 'Blues' On Thu, Jul 29, 2010 at 2:51 PM, Anna

Re: [R] Colour points in plot according to third variable

2010-07-29 Thread Henrique Dallazuanna
Try this: library(RColorBrewer) plot(iris$Sepal.Length, col = as.character(cut(iris$Sepal.Length, c(4,6,7,8), labels = brewer.pal(3, 'Blues' On Thu, Jul 29, 2010 at 2:51 PM, Anna Berthinussen wrote: > Hi, > > I am using the plot function to make a simple plot of my data with one > var