rectangles | R Documentation |
Observations of heights, widths and diagonal lengths of several rectangular objects, such as books, photographs, and so on were measured. Only the data in MPV versions 1.62 and later can be trusted; there were errors in the third column in previous versions.
rectangles
A data frame with 51 observations on the following 4 variables.
h
numeric, heights in centimeters
w
numeric, widths in centimeters
d
numeric, diagonal lengths in centimeters
index
numeric, sum of squares of heights and widths
x <- sqrt(rectangles$index)
y <- rectangles$d
y.lp <- locpoly(x, y, bandwidth=dpill(x,y), degree=1)
plot(y ~ x)
lines(y.lp, col=2, lty=2)
abline(0,1) # y = x + measurement error
plot(y.lp$y - y.lp$x, type="l", col=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.