Re: [R] graphing dilemna

From: Gregory Snow <Greg.Snow_at_intermountainmail.org>
Date: Tue 28 Feb 2006 - 05:03:17 EST


When barplots start getting complicated (and sometimes before that) you may want to start considering dotplots (package lattice) instead.

For your specific problem you could possibly do the side-by-side plot, then using the output from barplot and the rect function you could plot a rectangle over the top of part of the on bar (or set of bars) to do the stacked portion.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow@intermountainmail.org
(801) 408-8111
 
 


> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of sloan jones
> Sent: Friday, February 24, 2006 7:07 PM
> To: r-help@stat.math.ethz.ch
> Subject: [R] graphing dilemna
>
> I want to create a graph that combines both stacked and
> side-by-side bars, is this possible?
>
> If more information is need: I have five age categories
> which are further divided by gender (the male and female bars
> lie side by side and then all the age groups are side by
> side). I want to further divide just the youngest category
> into two smaller age groups and retain the sex division --
> stack the ages but have the sexes side by side.
>
> Help!
> Sloan
>
>
>
>
> --
> _______________________________________________
> Surf the Web in a faster, safer and easier way:
> Download Opera 8 at http://www.opera.com
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
> ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Feb 28 05:15:23 2006

This archive was generated by hypermail 2.1.8 : Tue 28 Feb 2006 - 06:08:49 EST