plot_joint_density: Plot joint density

plot_joint_densityR Documentation

Plot joint density

Description

Plot joint density

Usage

plot_joint_density(
  object,
  xvar,
  yvar,
  color = TRUE,
  contour = TRUE,
  smooth = TRUE
)

Arguments

object

SummarizedExperiment

xvar

svar

yvar

svar

color

TRUE or FALSE

contour

TRUE or FALSE

smooth

TRUE or FALSE

Value

ggplot

Examples

file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
object <- read_metabolon(file)
set.seed(20)
object$Height <- rnorm(ncol(object), mean = 176)
object$Weight <- rnorm(ncol(object), mean = 85.4)
plot_joint_density(object, 'Height', 'Weight')
plot_joint_density(object, 'Height', 'Weight',  smooth = TRUE)
plot_joint_density(object, 'Height', 'Weight',   color = TRUE)
plot_joint_density(object, 'Height', 'Weight', contour = TRUE)

bhagwataditya/importomics documentation built on Nov. 28, 2024, 8:28 a.m.