ggobi/ggally — pull request #7 by tejas-kale (2012-08-11 12:59:17+00:00)
Title: Small changes to ggpairs.R

Hi

I was trying to make 'ggpairs' work for 'illegal' variable names and played around with the source code to do so.

I also noticed that for the following plot, some variable names were being printed twice:-

ggpairs(data_, upper=list(combo='dot'), lower=list(continuous='density', combo='facethist', discrete='blank'), axisLabels='show', printInfo=FALSE)

where

data_ <- data.frame('Category'=sample(letters[1:4], 50, replace=TRUE), 'Score'=sample(50:100, 50, replace=TRUE), 'Wellness'=runif(50, 1, 5), 'Race'=sample(c('Black', 'White', 'Asian'), 50, replace=TRUE))

I am a relatively new to the nitty-gritties of R programming and this is the first time I am reading the source code of a R function and modifying it. Thus, I have laid down an excuse in case you encounter a rookie mistake/inefficient piece of code during the review.

Look forward to your comments.

Thanks
Tejas