cov_cov_plot: Plot correlation between two covariates

View source: R/covariate-explore.R

cov_cov_plotR Documentation

Plot correlation between two covariates

Description

[Stable]

Useful for exploratory plots.

Usage

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.


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.