Re: [R] Labeling barplot bars by multiple factors

2009-05-29 Thread Jim Lemon
Thomas Levine wrote: Ah, that makes sense. But now another two issues have arisen. Firstly, the error bars look like confidence intervals, and I'm pretty sure that they are but does some document verify this? I suppose I could check the code too. Secondly, I just read about how dynamite plots s

Re: [R] Labeling barplot bars by multiple factors

2009-05-28 Thread Thomas Levine
>> [mailto:r-help-boun...@r-project.org] On Behalf Of Thomas Levine >> Sent: Thursday, May 28, 2009 5:04 AM >> To: Jim Lemon >> Cc: r-help@r-project.org >> Subject: Re: [R] Labeling barplot bars by multiple factors >> >> Both of those worked, but hierobarp l

Re: [R] Labeling barplot bars by multiple factors

2009-05-28 Thread Thomas Levine
Both of those worked, but hierobarp looked a bit easier, so I used that. The one annoying thing is that it sorts alphabetically. Tom On Thu, May 28, 2009 at 6:46 AM, Jim Lemon wrote: > Thomas Levine wrote: > >> I want to plot quantitative data as a function of three two-level factors. >> How do

Re: [R] Labeling barplot bars by multiple factors

2009-05-28 Thread Jim Lemon
Thomas Levine wrote: I want to plot quantitative data as a function of three two-level factors. How do I group the bars on a barplot by level through labeling and spacing? Here 's what I'm thinking of. Also, I'm pretty sure that I wa

Re: [R] Labeling barplot bars by multiple factors

2009-05-27 Thread Mike Lawrence
You can get something close with ggplot2: library(ggplot2) my_data = expand.grid( A = factor(c('A1','A2')) , B = factor(c('B1','B2')) , C = factor(c('C1','C2')) ) my_data$DV = rnorm(8,mean=10,sd=1) p = ggplot() p = p + layer( geom = 'bar' , stat = 'identity'

[R] Labeling barplot bars by multiple factors

2009-05-27 Thread Thomas Levine
I want to plot quantitative data as a function of three two-level factors. How do I group the bars on a barplot by level through labeling and spacing? Here 's what I'm thinking of. Also, I'm pretty sure that I want a barplot, but there