View source: R/Plotting_functions.R
plot_density | R Documentation |
Plot points with density background with correlation coefficient
plot_density( df, var_x = names(df)[1], var_y = names(df)[2], theme_name = "theme_gray" )
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) |
a plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.