plot_density: Plot points with density background with correlation...

View source: R/Plotting_functions.R

plot_densityR Documentation

Plot points with density background with correlation coefficient

Description

Plot points with density background with correlation coefficient

Usage

plot_density(
  df,
  var_x = names(df)[1],
  var_y = names(df)[2],
  theme_name = "theme_gray"
)

Arguments

df

a data.frame

var_x

name of the x variable

var_y

name of the y variable

theme_name

name of the ggplot2 theme function to use ('theme_gray' by default)

Value

a plot


VoisinneG/InteRact documentation built on May 17, 2022, 11:40 p.m.