Re: [R] Help wit barplot

2008-02-18 Thread Marc Schwartz
Tom.O wrote: > 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 nega

[R] Help wit barplot

2008-02-18 Thread Tom.O
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 tha