plot_matr | R Documentation |
plot_matr generate plots and fitted lines of significantly correlated variables for exploration.
plot_matr(y, df, nrow = 2, ncol = 2, sig.level = 0.05, ylab = "")
y |
is a response variable for exploring its relationship with the other predictor variables |
df |
data frame or a matrix with predictor variables |
nrow |
specifies the number of plots to be inserted in a row |
ncol |
specifies the number of plots to be inserted in a column |
sig.level |
specifies the number significant level default is 0.05 |
ylab |
specifies the y-axis, which is the name of the respons variables defaults is the y names |
This function allows you to visualize the correlated variables with the selected variable. the fitted line is through regression It takes on an array or a data frame. if a vector is passed to the function it will be converted into a data frame Check if all the variables are numeric and not strings
a matrix of plots
Richard Magala, 2022
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.