draw_fit | R Documentation |
A draw_scatter
wrapper for plotting true vs. predicted values
draw_fit(
x,
y,
xlab = "True",
ylab = "Predicted",
fit = "glm",
se_fit = TRUE,
axes_square = TRUE,
axes_equal = TRUE,
diagonal = TRUE,
...
)
x |
Numeric, vector/data.frame/list: True values. If y is NULL and
|
y |
Numeric, vector/data.frame/list: Predicted values |
xlab |
Character: x-axis label. |
ylab |
Character: y-axis label. |
fit |
Character: Fit method. |
se_fit |
Logical: If TRUE, include standard error of the fit. |
axes_square |
Logical: If TRUE, draw a square plot. |
axes_equal |
Logical: If TRUE, set equal scaling for axes. |
diagonal |
Logical: If TRUE, add diagonal line. |
... |
Additional arguments passed to draw_scatter |
plotly
object.
EDG
## Not run:
x <- rnorm(500)
y <- x + rnorm(500)
draw_fit(x, y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.