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
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=
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
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.
__
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 <-
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
6 matches
Mail list logo