[R] ggpairs question

Roy Mendelssohn - NOAA Federal roy.mendelssohn at noaa.gov
Wed Jun 10 21:42:14 CEST 2015


Hi All:

I am not totally grasping GGally, in particular how to customize ggpairs  (or maybe I need to use a different part of GGally for what I want). 

Toy example:

> dput(junk)
> structure(list(state1 = c(-1.78772815343945, 0.347049897473099, 
> -0.18529149576171, 1.79047951942822, 1.13345484683348), state2 = c(-0.100139614037992, 
> 0.399087158966048, 0.865472473022594, 1.02082121315014, 0.973526790943227
> )), .Names = c("state1", "state2"), row.names = c("1958-03-01", 
> "1958-04-01", "1958-05-01", "1958-06-01", "1958-07-01"), class = "data.frame")
> 
> ggpairs(junk,lower=list(continuous="smooth"))

What I would like to do is have the upper box(es) display a plot of the cross-correlations instead of just the printed values of the correlations.

Thanks for any help.

-Roy M.

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new address and phone***
110 Shaffer Road
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



More information about the R-help mailing list