[R] Graphics overview

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Oct 21 12:50:13 CEST 2003


On Tue, 21 Oct 2003, Christoph Bier wrote:

> Hi,
> 
> is there an graphics overview, where the graphic capabitlities 
> of R are shown with the corresponding code? I already tested 
> 'demo(graphics)', that isn't that comprehensive, 
> 'demo(image)', 'demo(lattice)', searched the Mailarchive, 
> googled and the FAQ keeps silent, too.
>     For example, I know how a special graphic I need should 
> look like, but I don't know how to realise it. I even don't 
> know how to describe it =).

Chapter 4 of MASS (the book) is a pretty comprehensive set of examples, 
but given that there are lots of plots associated with e.g. multivariate 
analysis (try chapter 11 of MASS) and time series (try chapter 14 of MASS) 
the scope is enormous.

>     Another example, much more simpler (I hope): I want to get 
> the sum of the values in a plot above the columns. Like this:
> 
> |       3
> |  2    _
> |  _   | |
> | | |  | |
> |_|_|__|_|__
>     A    B
> 
>     RTMFs are welcome =/. But I read 'help(plot)' (plot is 
> what I actually use for the graphic above¹) and 'help(par)', 

It looks like a barplot to me.

> searched my introduction to S and S-Plus and I'm still waiting 
> for "Introductory Statistics with R" (P. Dalgaard), that is 
> not deliverable at the moment.

There is an example of that in the MASS package script ch04.R
The means to do it are described in `An Introduction to R' (and 
elsewhere).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list