Just wondering if it is possible to manipulable the y-axis of ggplot with geom_bar
for example:
library(plyr)
df1 <- data.frame(a=c(5,5,10,10,10))
df2 <- ddply(df1,.(a),sum)
ggplot(df2,aes(a,V1)) + geom_bar(stat="identity")
instead of aggregating df1, would it be possible to produce that plot directly in ggplot?
to manipulable the y-axis of ggplothas to do with this code. - David Robinson