abline | R Documentation |
This is a wrapper for R's abline function. See R's documentation for graphics::abline for further details.
abline(
a = NULL,
b = NULL,
h = NULL,
v = NULL,
reg = NULL,
coef = NULL,
Rcss = "default",
Rcssclass = NULL,
...
)
a , b |
coefficient (intercet and slope) for line |
h , v |
horizontal, vertical positions for line |
reg |
an object with a coef method |
coef |
vector with interect and slope for line |
Rcss |
style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle(). |
Rcssclass |
character, style class |
... |
Further parameters, see documentation of abline() |
# draw a set of horizontal lines and a vertical line
plot(c(0, 1), c(0, 1), type="n")
abline(h=seq(0, 1, by=0.2))
abline(v=0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.