[R] Question concerning ggplot

hadley wickham h.wickham at gmail.com
Tue Oct 24 15:27:04 CEST 2006


> > rsqs <- as.data.frame(stamp(mtcars, cyl ~ ., function(df)
> > summary(lm(mpg ~ wt, data=df))$r.squared))
> > rsqs$wt <- 4
> > rsqs$mpg <- 32
> > ggtext(p, data=rsqs, aes=list(label=value))
> >
> > But that doesn't work for some reason I don't understand yet (but I'm
> > working on it)

Ooops - I just had the wrong version of reshape installed.  It should
work with the version available on cran.

Hadley



More information about the R-help mailing list