standardizing bar heights

26 views
Skip to first unread message

Bob Muenchen

unread,
Mar 2, 2012, 3:50:59 PM3/2/12
to ded...@googlegroups.com
Hi All,

I'm trying to create a bar chart like this:

a <- factor( c(1,1,1,2,2,2,2) )
b <- factor( c(1,1,2,2,2,2,1) )
df <- data.frame(a,b)
ggplot(df, aes(a, fill = b) ) +
  geom_bar(position = "fill")

using Plot Builder. I can get the position to be stack or dodge, but not fill. Is it located in a different setting?

Thanks,
Bob

Ian Fellows

unread,
Mar 5, 2012, 3:45:32 AM3/5/12
to ded...@googlegroups.com
No, I think I simply missed it. I'll put it on the TODO list.

Best,
Ian

Kieran Short

unread,
Sep 12, 2013, 9:39:35 PM9/12/13
to ded...@googlegroups.com
Hi Bob,

For the life of my I can't get dodge to work. How do you set a bar geom to dodge within Plot Builder??? In the Options there isn't anywhere to set it.

cheers,
Kieran

Ian Fellows

unread,
Sep 13, 2013, 12:03:52 AM9/13/13
to ded...@googlegroups.com
The position button in the upper left hand corner.

ian


--
 
---
You received this message because you are subscribed to the Google Groups "Deducer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deducer+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Kieran Short

unread,
Sep 16, 2013, 11:57:35 PM9/16/13
to ded...@googlegroups.com
Ian you beautiful bastard! Thank you so much!!
I don't know how I missed it.

cheers,
Kieran
Reply all
Reply to author
Forward
0 new messages