tests/doc/scatterplot/cylinders.R

data(mpg,package="ggplot2")
m <- lm(cty~displ,data=mpg)
mpgf <- fortify(m,mpg)
library(lattice)
xyplot(jitter(.resid)~jitter(.fitted),mpgf,groups=factor(cyl))

Try the directlabels package in your browser

Any scripts or data that you put into this service are public.

directlabels documentation built on May 2, 2019, 6:13 p.m.