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: http://r.789695.n4.nabble.com/ggplot2-scale-shape-manual-with-

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 wrote: > I'm trying to produce a

Re: [R] ggplot2: scale_shape_manual

2012-04-20 Thread Brian Diggs
On 4/19/2012 5:20 AM, Brian Smith wrote: Thanks Brian. That worked. I also wanted to increase the size of the 'points' on the graph. Is there any way I can get rid of the 'legend' (in this case '3') appearing on the plot? === code library(ggplot2) leaves<- letters[1:8] m

Re: [R] ggplot2: scale_shape_manual

2012-04-19 Thread Brian Smith
Thanks Brian. That worked. I also wanted to increase the size of the 'points' on the graph. Is there any way I can get rid of the 'legend' (in this case '3') appearing on the plot? === code library(ggplot2) leaves <- letters[1:8] mat <- matrix(sample(1:1000,32),nrow=16,ncol=2

Re: [R] ggplot2: scale_shape_manual

2012-04-16 Thread Brian Diggs
On 4/16/2012 7:31 AM, Brian Smith wrote: Hi, I was trying to replicate one of the graphs given on the ggplot2 website. I have given a sample code below. I would like to combine the legends, since each color is uniquely mapped to a shape. ### library(ggplot2) leaves<- letters[1:8]