[R] [ggplot] some questions

hadley wickham h.wickham at gmail.com
Wed Nov 1 15:38:34 CET 2006


> - Suppose I have a factor with quite a lot of levels. How do I split
> this factor not only along x or y axis, but rather split about both
> axis. I'm looking for the lattice layout-equivalent.

You can't (yet).  You can work around it by splitting the factor into
two parts yourself.

> - If I split my data into levels and plot my measurement for every
> factor. How can I then add a line to every seperate panel with a
> different slope and a different intercept?

qplot(wt, mpg, data=mtcars, type=c("point","smooth"), method=lm)

Hadley



More information about the R-help mailing list