Graph: Correlogram
Correlation analysis function (Pearson or Spearman)
corgraph( data, axissize = 12, legendsize = 12, legendposition = c(0.9, 0.2), legendtitle = "Correlation", method = "pearson", pallete = "RdBu", color.marginal = "gray50", size.tile.lty = 1, size.label.cor = 1, fill.label.cor = "lightyellow", font.family = "sans" )
data
: data.frame with responsesaxissize
: 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)pallete
: If a string, will use that named palette. See scale_fill_distiller in the ggplot2.color.marginal
: Box border colorsize.tile.lty
: Box margin line thicknesssize.label.cor
: Label font sizefill.label.cor
: Label fill colorfont.family
: Font family (default is sans)The function returns a correlation matrix
data("pomegranate") corgraph(pomegranate[,-1])
Gabriel Danilo Shimizu, shimizu@uel.br
Leandro Simoes Azeredo Goncalves
Rodrigo Yudi Palhaci Marubayashi
Useful links