plot_joint_density | R Documentation |
Plot joint density
plot_joint_density(
object,
xvar,
yvar,
color = TRUE,
contour = TRUE,
smooth = TRUE
)
object |
SummarizedExperiment |
xvar |
svar |
yvar |
svar |
color |
TRUE or FALSE |
contour |
TRUE or FALSE |
smooth |
TRUE or FALSE |
ggplot
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.