corgraph {AgroR}R Documentation

Graph: Correlogram

Description

Correlation analysis function (Pearson or Spearman)

Usage

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"
)

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)

pallete

If a string, will use that named palette. See scale_fill_distiller in the ggplot2.

color.marginal

Box border color

size.tile.lty

Box margin line thickness

size.label.cor

Label font size

fill.label.cor

Label fill color

font.family

Font family (default is sans)

Value

The function returns a correlation matrix

Author(s)

Gabriel Danilo Shimizu, shimizu@uel.br

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

Examples

data("pomegranate")
corgraph(pomegranate[,-1])

[Package AgroR version 1.3.6 Index]