Description Usage Arguments Value Examples
Plot a scatter plot with correlation coefficient added as annotations.
Wrapper around the ggplot
and cor
function.
1 2 3 4 5 6 7 8 9 |
data |
A tibble or dataframe |
x |
First numeric variable |
y |
Second numeric variable |
group |
Variable used for grouping |
cor_method |
Which correlation coefficient to calculate |
use |
Method for handling missing values |
verbose |
Print relevant information |
a ggplot object
1 2 | correlation_scatter(iris, x="Sepal.Length", y="Sepal.Width", group="Species")
correlation_scatter(iris, cor_method="pearson")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.