Plot.Cor {MVar} | R Documentation |
Plot of correlations between variables.
Description
It performs the correlations between the variables of a database and presents it in graph form.
Usage
Plot.Cor(data, title = NA, grid = TRUE, leg = TRUE, boxleg = FALSE,
text = FALSE, arrow = TRUE, color = TRUE, namesvar = NA,
savptc = FALSE, width = 3236, height = 2000, res = 300)
Arguments
data |
Numeric data set. |
title |
Title for the plot, if not defined it assumes standard text. |
grid |
Puts grid on plot (default = TRUE). |
leg |
Put the legend on the plot (default = TRUE) |
boxleg |
Put frame in the legend (default = FALSE). |
text |
Puts correlation values in circles (default = FALSE). |
arrow |
Positive (up) and negative (down) correlation arrows (default = TRUE). |
color |
Colorful plot (default = TRUE). |
namesvar |
Vector with the variable names, if omitted it assumes the names in 'date'. |
savptc |
Saves graphics images to files (default = FALSE). |
width |
Graphics images width when savptc = TRUE (defaul = 3236). |
height |
Graphics images height when savptc = TRUE (default = 2000). |
res |
Nominal resolution in ppi of the graphics images when savptc = TRUE (default = 300). |
Value
Plot with the correlations between the variables in 'date'.
Author(s)
Paulo Cesar Ossani
Examples
data(iris) # data set
Plot.Cor(data = iris[,1:4], title = NA, grid = TRUE, leg = TRUE, boxleg = FALSE,
text = FALSE, arrow = TRUE, color = TRUE, namesvar = NA, savptc = FALSE,
width = 3236, height = 2000, res = 300)
Plot.Cor(data = iris[,1:4], title = NA, grid = TRUE, leg = TRUE, boxleg = FALSE,
text = TRUE, arrow = TRUE, color = TRUE, namesvar = c("A1","B2","C3","D4"),
savptc = FALSE, width = 3236, height = 2000, res = 300)