powered by
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" )
The function returns a graph for correlation
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
Gabriel Danilo Shimizu, shimizu@uel.br
Leandro Simoes Azeredo Goncalves
Rodrigo Yudi Palhaci Marubayashi
data("pomegranate") with(pomegranate, plot_cor(WL, SS, xlab="WL", ylab="SS"))
Run the code above in your browser using DataLab