plot_cor.Rd
Correlation analysis function (Pearson or Spearman)
plot_cor(
x,
y,
method = "pearson",
ylab = "Dependent",
xlab = "Independent",
theme = theme_classic(),
pointsize = 5,
shape = 21,
fill = "gray",
color = "black",
axis.size = 12,
ic = TRUE,
title = NA,
family = "sans"
)
Numeric vector with independent variable
Numeric vector with dependent variable
Method correlation (default is Pearson)
Variable response name (Accepts the expression() function)
Treatments name (Accepts the expression() function)
ggplot2 theme (default is theme_classic())
Point size
shape format
Fill point
Color point
Axis text size
add interval of confidence
title
Font family
The function returns a graph for correlation