ggplot(e,aes(id, rate,colour=flow))
p + geom_point(aes(size=pause),legend_param=list(e$pause)) + ylab("rate(%)") + scale_y_continuous(limits = c(55,100)) + opts(axis.title.x = theme_text(colour = "#000000", face = "bold"), axis.title.y = theme_text(face="bold"))
Thanks for any advice.
Tony Bigbee
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
Depending on the type of variable "pause" is, you can probably do
something like:
+ scale_size_discrete("Legend Name", breaks = c(0, 1, 3, 5), labels =
c(0, 1, 3, 5))
Can you create an example dataset? Or send the output of str(pause)?
Cheers,
Josh
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/
Looks like Brandon's suggestion might help. If you convert it from
continuous to factor, you will just get the discrete sizes.
Alternately, if you still wanted to specify particular breaks, you
would need to switch from scale_size_discrete to scale_size_continuous
since it is integer class, not discrete right now.
HTH,
Josh
Eh?
I thought factor() was a great suggestion, what's not nice about this?
dev.new()
ggplot(mtcars, aes(hp, mpg, size = carb)) + geom_point()
dev.new()
ggplot(mtcars, aes(hp, mpg, size = factor(carb))) + geom_point()
Well, size is no longer proportional to carb...
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
Josh
--