erf | R Documentation |
Calculates the error function.
erf(x)
x |
A vector of values on the real number line. |
A vector of transformed values based on the error function.
plot(c(-2, 2), c(-1, 1), type = "n", xlab = "x", ylab = "erf(x)")
x <- seq(-2, 2, length = 100)
abline(h = c(-1, 1), col = "grey")
lines(x, erf(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.