Plot points with density background with correlation coefficient

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

Arguments

df

a data.frame

var_x

name of the x variable

var_y

name of the y variable

Value

a plot