plot_lm_suitability | R Documentation |
This function creates one pdf page for every predictor inside slist$X
. The pdf page consists of the following three plots shown next to each other:
Histogram
Density plot
Scatterplot against slist$df$RT
The name of the predictor, its suitability, and the status of the checks for missing values, near-zero variance, and outliers are shown in the title of each plot.
plot_lm_suitability(
slist = check_lm_suitability(),
pdfpath = tempfile("lm_suitability", fileext = ".pdf"),
descs = NULL
)
slist |
A list containing the data frame |
pdfpath |
The path to the pdf file to save the plots. |
descs |
Index of chemical descriptors to plot. Leave at NULL to plot all chemical descriptors. |
No return value. The function is used for its side effect of creating a pdf file with the plots.
check_lm_suitability()
df <- head(RP, 3)
slist <- check_lm_suitability(df, verbose = FALSE, nw = 1)
plot_lm_suitability(slist, descs = 1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.