Plot scatterplot between the dependent variables and all the predictors
1 | scatterplot(variabledf, y_name, fittingmethod = "lm", n_row = 5)
|
variabledf |
the dataframe containing dependent and independent variables |
y_name |
charater, the name of the dependent variable |
fittingmethod |
the method to fit a line, choosing from the 'stat_smooth' in gglot2, can also be lm, glm, gam, loess. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.