R: Graphics

From MathWiki

  • Sampler of R graphics by Eric Lecoutre[1] (http://www.demog.berkeley.edu/~boe/Rstuff/_gallery.pdf)
  • R Graph Gallery (http://addictedtor.free.fr/graphiques/)
Table of contents

Interesting graphical ideas

Balloonplot 
Graphical presentation of a table with overlaid circles proportional to frequency in table cell. Has a good treatment of higher way arrays. See 'library(gplots)' and R News (http://cran.r-project.org/doc/Rnews/Rnews_2006-2.pdf).
Pedigree diagrams 
See R News (http://cran.r-project.org/doc/Rnews/Rnews_2006-2.pdf).

Basic graphics

  • plot
  • lines
  • points
  • text
  • identify
  • locator
  • legend

Example

Use spline example to show greek

Lattice graphics

xyplot More dimensions: use a Simpson's paradox example: e.g. smoking and LE

conditioning with panels (use continent?)
conditioning with cuts (coplot)
using groups
useing panel and groups

Others: see below

Visualizing regression


adding points

3D to visualize

+ groups

Other 'basic' graphics commands


Basic graphics vs trellis

Basic Trellis Comments
plot xyplot
boxplot bwplot


Copying R graphs for insertion in Latex files

Hopefully, someone will tell us how to do this easily.