scatter_cor | R Documentation |
Draw a scatterplot with correlation coefficient
scatter_cor(
x,
y,
rho = c("spearman", "pearson"),
plot_rho_x = NA,
plot_rho_y = NA,
...
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.