Correlation analysis function (Pearson or Spearman)

corgraph(
  data,
  axissize = 12,
  legendsize = 12,
  legendposition = c(0.9, 0.2),
  legendtitle = "Correlation",
  method = "pearson"
)

Arguments

data

data.frame with responses

axissize

Axes font size (default is 12)

legendsize

Legend font size (default is 12)

legendposition

Legend position (default is c(0.9,0.2))

legendtitle

Legend title (default is "Correlation")

method

Method correlation (default is Pearson)

Value

The function returns a correlation matrix

Author

Gabriel Danilo Shimizu, shimizu@uel.br

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

Examples

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