plotVars | R Documentation |
plotVars() plots the variables included in each model specification in order of model index. Returns a ggplot object that can then be combined with the output of other functions like plotRMSE() if further customization of each plot is desired.
plotVars(sca_data, title = "", colorControls = FALSE)
sca_data |
A data frame returned by 'sca()' containing model estimates from the specification curve analysis. |
title |
A string to use as the plot title. Defaults to an empty string, '""'. |
colorControls |
A boolean indicating whether to give each variable a color to improve readability. Defaults to 'FALSE'. |
A ggplot object.
plotVars(sca_data = sca(y = "Salnty", x = "T_degC",
controls = c("ChlorA", "O2Sat"),
data = bottles, progressBar = TRUE,
parallel = FALSE),
title = "Model Variable Specifications");
plotVars(sca_data = sca(y = "Salnty", x = "T_degC",
controls = c("ChlorA*O2Sat"),
data = bottles, progressBar = FALSE,
parallel = FALSE),
colorControls = TRUE);
plotVars(sca_data = sca(y = "Salnty", x = "T_degC",
controls = c("ChlorA*NO3uM", "O2Sat*NO3uM"),
data = bottles,
progressBar = TRUE, parallel = TRUE, workers = 2));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.