Plot univariate relationships all on one plot Need a hierarchy of how to display plots sensibly If response is continuous For a numeric predictor -> scatterplot For a categorical predictor -> boxplot If response is a factor For a numeric predictor -> boxplot For a categorical predictor -> barplot
1 2 3 4 5 6 7 8 | plot_univariate(
response,
covs,
data,
showN = FALSE,
na.rm = TRUE,
response_title = NULL
)
|
response |
character vector with names of columns to use for response |
covs |
character vector with names of columns to use for covariates |
data |
dataframe containing your data |
showN |
boolean indicating whether sample sizes should be shown on the plots |
na.rm |
boolean indicating whether na values should be shown or removed |
response_title |
character value with title of the plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.