View source: R/correlation_function.R
corgraph | R Documentation |
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 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) |
The function returns a correlation matrix
Gabriel Danilo Shimizu, shimizu@uel.br
Leandro Simoes Azeredo Goncalves
Rodrigo Yudi Palhaci Marubayashi
data("pomegranate")
corgraph(pomegranate[,-1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.