[R] Stacked Area chart

Achim Zeileis Achim.Zeileis at wu-wien.ac.at
Tue Aug 16 18:20:54 CEST 2005


On Tue, 16 Aug 2005 12:03:01 -0400 Mike Saunders wrote:

> I wish to do a stacked area chart to show how relative proportions of
> species within a stand have changed over time.

If you don't want to show the marginal distribution over time, then you
can use barplot() on the table of relative frequencies (e.g., obtained
by prop.table()).
If you want to show the marginal distribution, you can use mosaicplot().
The functions doubledecker() and mosaic() in package vcd might also be
helpful.
Z

> I know this is simple, but can someone point me to the right function
> (if it exists).  I have not had any luck finding it in the R-help, but
> maybe I am searching using the wrong keywords.
> 
> Thanks,
> Mike
> 
> 
> Mike Saunders
> Research Assistant
> Forest Ecosystem Research Program
> Department of Forest Ecosystem Sciences
> University of Maine
> Orono, ME  04469
> 207-581-2763 (O)
> 207-581-4257 (F)
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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