A draw_scatter
wrapper for plotting true vs. predicted values
Usage
draw_fit(
x,
y,
xlab = "True",
ylab = "Predicted",
fit = "glm",
se_fit = TRUE,
axes_square = TRUE,
axes_equal = TRUE,
diagonal = TRUE,
...
)
Arguments
- x
Numeric, vector/data.frame/list: True values. If y is NULL and
NCOL(x) > 1
, first two columns used asx
andy
, respectively- 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