Re: [R] things that are difficult/impossible to do in SAS or SPSS butsimple in R

From: jiho <>
Date: Wed, 16 Jan 2008 00:35:18 +0100

On 2008-January-15 , at 21:58 , Greg Snow wrote:
> Some aspects of graphics, adding to graphs I believe is still quite a
> bit easier in R/S-PLUS.

Hadley would give better examples than me (and I'm no expert of SAS- SPSS) but with ggplots, in R, it is both very easy produce statistical plots (i.e. with results from lm's,various smoothers, data density etc.) and to overlay different graphics layers without having to take care of the scales, legends, etc.

NB: the website itself only demonstrates simple graphs done with one function (since its purpose is documentation) but overlaying two graphs is often as simple as adding them: p <- ggplot(mtcars, aes(x=wt, y=mpg)) + geom_point() g <- geom_path(aes(x=wt,y=mpg, colour=qsec)) p + g
(this example is probably useless but it is only for demonstration purposes)



______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Jan 2008 - 23:38:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Jan 2008 - 00:30:06 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive