Learn R Programming

epade (version 0.2.2)

correlogram.ade: Correlogram plot

Description

Draw a correlogram (A Correlation matrix)

Usage

correlogram.ade(vars1, vnames1="noname", vars2, vnames2="noname",
                prediktors=0, data=NULL, xlab=NULL, ylab=NULL, main=NULL,
                method="p", digits=2, pdigs=4, pvals=TRUE, bars=TRUE,
                col=NULL, tcol=NULL, bgcol=NULL, wall=0)

Arguments

vars1
a vector of character strings with the names of variables in data.frame (rows)
vnames1
a vector of character strings with the labels for vars1
vars2
a vector of character strings with the names of variables in data.frame (cols)
vnames2
a vector of character strings with the labels for vars2
prediktors
a vector of character strings with the names of variables for adjustment (partial correlation)
data
a data.frame
xlab
a title for the x axis
ylab
a title for the y axis
main
a main title of the plot, it will be drawn below the plot
method
a single keyword from:
  • "pearson"
"spearman" "kendall"

item

  • digits
  • pdigs
  • pvals
  • bars
  • col
  • tcol
  • bgcol
  • wall

Examples

Run this code
data<-rnorm(1000)
data<-as.data.frame(data)
for(i in 1:9){
eval(parse(text=paste("data$var_", i, "<- rnorm(1000)", sep='')))
eval(parse(text=paste("data$var_", i,
"[round(runif(round(runif(1, 1, 100)), 1, 1000))]<-NA", sep='')))
}
correlogram.ade(vars1=c('var_1', 'var_2', 'var_3', 'var_4', 'var_5'),
                vars2=c('var_6', 'var_7', 'var_8', 'var_9', 'var_3'),
                data=data)

Run the code above in your browser using DataLab