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-
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
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
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
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
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]
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]
mat <- matrix(sample(1:1000,32),nrow=16,nco
7 matches
Mail list logo