briandk / granovaGG

Bob Pruzek and Jim Helmreich's implementation of Elemental Graphics for Analysis of Variance
Other
15 stars 4 forks source link

granovagg.1w error upon updating ggplot2 #138

Closed mbask closed 12 years ago

mbask commented 12 years ago

I get the following error upon call of granovagg.1w function, just after updating ggplot2 to version 0.9.0:

Errore in list(call = match.call(), aesthetics = aesthetics, scale_name = scale_name,  : 
  'name' is missing

Here is a reproducible example:

> g <- granovagg.1w(site.start$G, 
                  group=site.start$treatment, 
                  ylab = "G (m2)", 
                  main = "ANOVA")

> dput(site.start)
structure(list(treatment = structure(c(3L, 1L, 2L, 1L, 3L, 1L, 
2L, 2L, 3L), .Label = c("i", "s", "t"), class = "factor"), G = c(16494.9322276732, 
20428.991628131, 21346.598482367, 20356.7349970985, 21012.5424635353, 
21970.990022268, 20798.9141630912, 22754.5555899509, 22287.2436827294
)), .Names = c("treatment", "G"), row.names = c(NA, 9L), class = "data.frame")
briandk commented 12 years ago

Thanks for letting us know!

We're currently at work bringing granovaGG up-to-date with ggplot2 v 0.9.0. Unfortunately, there are still some issues, including the one you raised, that we know about and are actively fixing.

In the mean-time, I'd recommend that you:

  1. Remove your current (0.9.0) version of ggplot2
  2. Re-install ggplot2 (0.8.9) from CRAN

If you can't get that to work, or you have any other questions, please let us know!

/cc @Wildoane

briandk commented 12 years ago

This issue essentially duplicates #139

briandk commented 12 years ago

@mbask - The current development version of granovaGG is now compatible with both ggplot2 0.8.9 and ggplot2 0.9.0. We aim to submit to CRAN within 24 hours, and hopefully the package will be officially available in a few days.

In the meantime, you can use devtools to install the development version. Just remove your current version first:

library(devtools)
remove.packages("granovaGG")
install_github(username = "briandk", repo = "granovaGG", branch = "dev")

Thanks again, and please let us know if you have any questions/concerns!

mbask commented 12 years ago

@briandk, amazing work. Everything works fine with ggplot2 0.9.0. Thank you.

briandk commented 12 years ago

@mbask - Just to follow-up: our official v1.1 release is now on CRAN. This release is compatible with the CRAN versions of both v0.8.9 and v0.9.0 of ggplot2.

Hope that helps, and please don't hesitate to contact us if you have any other questions, comments, or concerns!