plot_univariate: Plot univariate relationships all on one plot Need a...

Description Usage Arguments

View source: R/main.R

Description

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

Usage

1
2
3
4
5
6
7
8
plot_univariate(
  response,
  covs,
  data,
  showN = FALSE,
  na.rm = TRUE,
  response_title = NULL
)

Arguments

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


Avery-Lisa/myReportRx documentation built on May 23, 2021, 2:30 a.m.