This function plots a Linear Regression Result
1 2 3 4 5 | mplot_lineal(observed, predicted, title = "Regression Model Results",
subtitle = NA, model_name = NA, save = FALSE, subdir = NA,
deviation = FALSE, transparent = FALSE, x.lim = c(0, 100),
y.lim = c(0, 100), x.lab = "Observed values (Y)",
y.lab = "Predicted values (Y')", file_name = "viz_lineal.png")
|
observed |
Vector. Observed values: real data values label. |
predicted |
Vector. Predicted value or model's result. |
title |
Character. Title to be shown in the plot. |
subtitle |
Character. Subtitle to be shown in the plot. |
model_name |
Character. Model's name |
save |
Boolean. Save output plot into working directory |
subdir |
Character. Sub directory on which you wish to save the plot |
deviation |
Boolean. Plot the deviation? |
transparent |
Numeric. Transparency parameter. |
x.lim |
Vector. The bottom and upper limit of the values on X axis. |
y.lim |
Vector. The bottom and upper limit of the values on Y axis. |
x.lab |
Character. The label to be printed on the X axis plot. |
y.lab |
Character. The label to be printed on the Y axis plot. |
file_name |
Character. File name as you wish to save the plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.