Skip to content
Back to formatted view

Raw Message

Message-ID: <7AF79168-0FB5-4288-B401-7732EDFD0F80@comcast.net>
Date: 2009-11-21T00:09:39Z
From: David Winsemius
Subject: Stacked Bar Plot
In-Reply-To: <5c7c5dfa0911201554q4f9c5d37h36f8b457a2dfe488@mail.gmail.com>

On Nov 20, 2009, at 6:54 PM, Gary wrote:

> Hi R Folks,
>
> I need to plot a stacked bar plot with row labels as A,B,C,... and  
> each bar
> divided by x,y,.... Here is the data:
>
>  x y
> A 1 .5
> B -.2 .6
> C .3 -.7
> D .4 .8
> (for e.g. x,y,... could be air pollutants and A,B,C,... could be  
> months)

At the moment the letters appear to be labels.

>
> Issue 1) It has negative values.
> Issue 2) It contain two categorical variables.

"It"??? (In my opinion, the indefinite pronoun should be severely  
deprecated in technical discourse.)

>
> Can anyone help me?

RSiteSearch("stacked barplot")  # 44 hits


>
> Thanks,
> Gary
>
>
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT