Description Usage Arguments Value See Also Examples
This function creates a plot of the correlations using the package ggplot2.
1 2 3 4 5 6 7 8 9 | plot_correlation(
data,
x,
y,
xlab = "x-axis title",
ylab = "y-axis title",
y_limits = NULL,
x_limits = NULL
)
|
data |
A dataframe containing the data to be processed. |
x |
The name of the x covariate. |
y |
The name of the y covariate. |
xlab |
A title for the x-axis. |
ylab |
A title for the y-axis. |
y_limits |
The limit for the y-axis of the plot. |
x_limits |
The limit for the x-axis of the plot. |
A ggplot object.
1 2 3 | plot_correlation(data = males,
x = 'Ter_map', y = 'Mat_succ',
xlab = 'x-axis title', ylab = 'y-axis title')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.