Hello, I'm trying currently using barplot to summarize precipitation data. So far I've compiled total annual snow and rain accumulation in a table (attached). I've been successful at plotting it using the following code:
fig=barplot(t(Annual_Precip_table), horiz=TRUE, space=0, col=c("grey70", "white"), axes=FALSE) . . The result is a stacked barplot with total annual rain represented by grey bars and total annual snow represented by white bars. This is great, however, I'd like to position the bars so that the rain bars are right justified on the axis and the snow bars are left justified on the axis. I looked around for ways to do this, and I'm not sure, but is plotrix capable of doing it using the barb function? Does anyone have experience with this kind of plot? Thanks. -- Kevin Turner Department of Geography and Environmental Studies Wilfrid Laurier University Waterloo, Ontario
______________________________________________ R-help@r-project.org mailing list 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.