scatter_cor: Draw a scatterplot with correlation coefficient

scatter_corR Documentation

Draw a scatterplot with correlation coefficient

Description

Draw a scatterplot with correlation coefficient

Usage

scatter_cor(
  x,
  y,
  rho = c("spearman", "pearson"),
  plot_rho_x = NA,
  plot_rho_y = NA,
  ...
)

Arguments

x

quantitative variable

y

quantitative variable

rho

correlation method, either 'spearman' (default) or 'pearson'

plot_rho_x

if not NA where to put the correlation estimate string

plot_rho_y

if not NA where to put the correlation estimate string

...

further parameters passed to plot


lbraglia/lbstat documentation built on Sept. 17, 2023, 2:30 p.m.