[NTG-context] Charts, Graphs, Tufte, and ConTeXt
Karl Ove Hufthammer
karloh at mi.uib.no
Tue Jul 25 14:12:31 CEST 2006
David Wooten wrote:
> Thus I'm curious as to what others use... is R an efficient method to
> produce elegant charts?
Yes! R (especially using the new grid and lattice framework) produces
excellent charts and graphs, with very sensible default options (much
of it based on Cleveland’s research).
There are packages for most common and not-so-common stasticial graphs, but
it is not difficult to create your own from scratch, either, or to modify
existing ones.
For an example of the various graphics possible to create with R, try these
commands (at an R prompt):
library(lattice) # Load the ‘lattice’ package¹.
grid::grid.prompt(TRUE); par(ask=TRUE) # Pause between each graphic.
example(xyplot) # Many nice lattice graphs.
demo(lattice) # More lattice graphs.
demo(graphics) # Example of non-lattice graphs.
You may also want to take a look at the R Graph Gallery:
http://addictedtor.free.fr/graphiques/
¹ Which is basically ‘trellis for R’; see
http://stat.bell-labs.com/project/trellis/.
--
Karl Ove Hufthammer
E-mail and Jabber: karl at huftis.org
More information about the ntg-context
mailing list