inst/snippets/anscombe.R

ddd <- with(anscombe, data.frame( 
	x = c(x1, x2, x3, x4), 
	y = c(y1, y2, y3, y4), 
	set = rep(1:4, each = nrow(anscombe))) 
	)
xyplot(y ~ x | factor(set), data = ddd, type = c('p', 'r'), as.table = TRUE, lty = 2)

Try the Lock5withR package in your browser

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

Lock5withR documentation built on May 2, 2019, 3:43 p.m.