[Stable]

Useful for exploratory plots.

cov_cov_plot(
  d,
  cov,
  continuous,
  log_transform_plot = rep(FALSE, length(cov)),
  dcov_info,
  by = "ID"
)

Arguments

d

Dataset with covariates.

cov

Vector of length 2 for covariate names.

continuous

Logical vector of length 2 for whether cov is continuous or not.

log_transform_plot

Should plot be log transformed or not.

dcov_info

Optional data.frame with covariate information.

by

Character (default = "ID") variable to split over.

Value

ggplot2 object displaying covariate-covariate correlations.