corgraph.Rd
Correlation analysis function (Pearson or Spearman)
corgraph(
data,
axissize = 12,
legendsize = 12,
legendposition = c(0.9, 0.2),
legendtitle = "Correlation",
method = "pearson"
)
data.frame with responses
Axes font size (default is 12)
Legend font size (default is 12)
Legend position (default is c(0.9,0.2))
Legend title (default is "Correlation")
Method correlation (default is Pearson)
The function returns a correlation matrix
data("pomegranate")
corgraph(pomegranate[,-1])
#> Var1 Var2 cor p
#> 2 SS WL 0.291613031 1.667842e-01
#> 3 AT WL 0.341919057 1.019746e-01
#> 4 ratio WL -0.329911351 1.153953e-01
#> 7 AT SS 0.164003383 4.438159e-01
#> 8 ratio SS -0.005112113 9.810861e-01
#> 12 ratio AT -0.955105007 4.178944e-13