Hi Miluji,

Using Jim's interpretation of your desired graph,
you could do it in ggplot2 using your dat DF by:

ggplot() +
 geom_bar(data=dat,
   aes(x=week,y=count,fill=city),stat="identity",position="dodge") +
 coord_flip() +
 geom_line(data=dat, aes(x=week, y=mean_tmin))

There would still need some work to be done to get the weekly mean
into a legend, but it is achievable if required.

Ron.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to