stacked barplot in greyscale

14 views
Skip to first unread message

tcskurski

unread,
Sep 24, 2010, 7:42:13 PM9/24/10
to ggplot2
I am wondering how to create a stacked barplot in greyscale instead of
color.
If anyone knows please use the example code to show how to modify to
greyscale.
qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(gear))

Thanks!

baptiste auguie

unread,
Sep 25, 2010, 8:07:20 AM9/25/10
to tcskurski, ggplot2
last_plot() +
scale_fill_grey()


HTH,

baptiste

> --
> 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
>

Reply all
Reply to author
Forward
0 new messages