Re: [R] Help wit barplot

From: Marc Schwartz <>
Date: Mon, 18 Feb 2008 07:30:27 -0600

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 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
> Excel.jpg
> Regards Tom


See this post from last year:

HTH, Marc Schwartz mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 18 Feb 2008 - 13:55:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Feb 2008 - 14:00:15 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive