[R] graphing dilemna
Gregory Snow
Greg.Snow at intermountainmail.org
Mon Feb 27 19:03:17 CET 2006
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 at intermountainmail.org
(801) 408-8111
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of sloan jones
> Sent: Friday, February 24, 2006 7:07 PM
> To: r-help at 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 at 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
>
More information about the R-help
mailing list