I have no problem specifying the mapping in both ggplot and various geom_*
functions. However, it is important to specify data and mapping parameter names
in the geom_* functions, particularly so because the parameter ordering is
different there.
-
Hi, it seems to be a problem about using aes both in ggplot as also in geom_bar.
You could specify fill property for your geom_bar in ggplot
initialization, in order to avoid this issue
(you could also do the same thing for ymin and ymax properties for
errorbar :P), i.e:
dodge <-position_dodge(wi
Hi,
i'm using this lines of code:
dodge <-position_dodge(width=0.9)
ggplot(dfm,aes(x = X,y = value)) +
geom_bar(aes(fill = variable), position=dodge, stat="identity") +
geom_errorbar(aes(ymin=value-er, ymax=value+er),width=0.25,
position=dodge,stat="identity")
to plot this data frame
3 matches
Mail list logo