I ran the code you suggested ... it didn't work ... got same results
as before. I upgraded R and ggplot2 to latest releases and tried
again ... same results.
You mentioned a fix in the dev version. Is there a way to be notified
On Apr 18, 11:39 am, Winston Chang <
winstoncha...@gmail.com> wrote:
> I think this was fixed in the development version:
https://github.com/hadley/ggplot2/issues/264
>
> But you can also use this:
> ggplot(mtcars, aes(x=wt, y=mpg, color=factor(am), shape=factor(gear))) +
> geom_point() + scale_shape_manual(breaks=c(3,4,5), values= c(1,16,4))
>
> Just make sure that the breaks are in ascending order -- there's another
> bug that's yet to be fixed, where it doesn't work correctly when the breaks
> are specified in another order.