triangle | R Documentation |
The data are the lengths of three sides of (hypothetical) right-angled triangles
data(triangle)
A data frame with 20 observations on the following 3 variables.
y
the length of the hypotenuse; a numeric vector
x1
the length of one side of the triangle; a numeric vector
x2
the length of the third side of the triangle; a numeric vector
The data give the three sides of hypothetical right-angled triangles. The data are randomly generated so that y is the square root of x1^2 + x2^2, plus a small amount of error. The idea is from Gelman and Nolan (2002).
The data are artificial; generated using R.
The idea is from Andrew Gelman and Deborah Nolan (2002) Teaching Statistics: A bag of tricks. Oxford University Press.
data(triangle) plot(triangle)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.