Re: [R] Changing the base of geom_bar in ggplot

2012-11-30 Thread Jeff Newmiller
I think your request is internally inconsistent: you want units of percent but you want to show the average(I assume you intend "mean")? You can subtract the mean from each value and then divide by the mean, then subtract 1, then multiply by 100. You inherently lose visibility to what the mean

[R] Changing the base of geom_bar in ggplot

2012-11-30 Thread Werner
Hi, this is likely very easy to do but I don't find the right terms to search for the solution. I want to show in a bar chart how much different categories deviate from the average percentage change. Thus, in the following example I would like to set the zero line or base or whatever it is calle