[R] Help wit barplot

Tom.O tom.olsson at dnbnor.com
Mon Feb 18 12:10:00 CET 2008


Hi

I have som problems with a barplot. It can be created easily in Excel but I
cant manage to get it right in R.

For example:
MyData <-
matrix(c(1,2,-1,-1,0,-2,-2,1,1,1,-2,3),ncol=3,dimnames=list(LETTERS[1:4],seq(3)))

I want the barplot to stack the positive and negative values separatly so
that positive values are stacked over 0 and negative is stacked under 0. 

I have added a jpg of the graph in excel 
http://www.nabble.com/file/p15542914/Excel.jpg Excel.jpg 

Regards Tom
-- 
View this message in context: http://www.nabble.com/Help-wit-barplot-tp15542914p15542914.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list