[R] ggplot2 scale_shape_manual with large numbers instead of shapes

2015-08-27 Thread Marian Talbert
I'm trying to produce a plot with climate data in which colors describe one aspect of the data (emissions scenario) and numbers rather than shapes show the model used (there are 36 models for one emissions scenario and 34 for the other). I'm trying to use numbers rather than symbols because there

Re: [R] ggplot2 scale_shape_manual with large numbers instead of shapes

2015-08-27 Thread Hadley Wickham
Something like this? df - data.frame( x = runif(30), y = runif(30), z = factor(1:30) ) ggplot(df, aes(x, y)) + geom_point(aes(shape = z), size = 5) + scale_shape_manual(values = c(letters, 0:9)) Hadley On Thu, Aug 27, 2015 at 4:48 PM, Marian Talbert mtalb...@usgs.gov wrote: I'm

Re: [R] ggplot2 scale_shape_manual with large numbers instead of shapes

2015-08-27 Thread Marian Talbert
Not exactly I was trying to only numbers for symbols instead of a mix of letters and numbers just to be consistent. I'm pretty sure someone will nag me if I use both letters and numbers as symbols -- View this message in context: