Re: [R] Correlograms: using boxes and different variables on rows and columns

2012-05-25 Thread Kevin Wright
In general, when you have a question about a package, it is best to contact the package author directly. (In this case, me). 1. Easy. You just have to define your own panel function. I just modified panel.shade to create panel.bar panel.bar <- function(x, y, corr=NULL, ...){ usr <- par()$us

[R] Correlograms: using boxes and different variables on rows and columns

2012-05-25 Thread dadrivr
I'm trying to make correlograms using corrgram. See below for a simple example. library(corrgram) data(baseball) vars1 <- c("Assists","Atbat","Errors","Hits","Homer","logSal") vars2 <- c("Putouts","RBI","Runs","Walks","Years") corrgram(baseball[,vars2],lower.panel=panel.shade, upper.panel=

Re: [R] Correlograms

2012-01-10 Thread Kevin Wright
If I understand your question correctly, install the corrgram package from CRAN. Then, library(corrgram) cm <- cor(iris[ , 1:4]) corrgram(cm, type="corr") Also, see help for the "vote" data: ?vote Kevin Wright On Tue, Jan 10, 2012 at 2:06 PM, Natbyah wrote: > I would like to make a correlogr

[R] Correlograms

2012-01-10 Thread Natbyah
I would like to make a correlogram in which I also have a correlation matrix instead of one of the panels. Is that possible? -- View this message in context: http://r.789695.n4.nabble.com/Correlograms-tp4283245p4283245.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Correlograms and linear regression

2010-08-19 Thread Kevin Wright
Just define your own panel function. Here I modified the panel.ellipse function and called it panel.lm library(corrgram) data(baseball) vars2 <- c("Assists","Atbat","Errors","Hits","Homer","logSal", "Putouts","RBI","Runs","Walks","Years") panel.lm <- function(x, y, ...){ dfn <-

[R] Correlograms and linear regression

2010-08-19 Thread ashz
Dear all, I generated a Correlograms and used the panel.ellipse (confidence ellipse and smoothed line) option. Is there a way to get instead of the smoothed line the linear regression? Thanks, As hz -- View this message in context: http://r.789695.n4.nabble.com/Correlograms-and-linear-regre