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 does not display title and x-axis labels #81

Closed briandk closed 13 years ago

briandk commented 13 years ago

See below:

granovagg.1w display problems

briandk commented 13 years ago

Working on a patch that solves the issue:

fixed labels and titles in granovagg.1w

briandk commented 13 years ago

The disappearing title/x-axis label only seems to be present in RStudio. Running the code below in R.app produces a proper image. I'm now wondering whether it's a bug with the latest version of RStudio, rather than our code.

Steps to Reproduce the bug

  1. Set the working directory to be the path that contains the granovaGG package. In my example, I keep granovaGG in a "dev" folder of my Dropbox, under my Mac user directory. Your example may be different.Use git to checkout commit 89beaaaa4e626f1b062c61b2458242199ec6e606 (for example, at the terminal)

    cd ~/Dropbox/dev/granovaGG/
    git checkout 89beaaaa4e626f1b062c61b2458242199ec6e606
  2. Start a clean RStudio session (with no objects on the workspace, and no libraries loaded)
  3. Set the working directory to be the path that contains the granovaGG directory. In my example, I keep granovaGG in a "dev" folder of my Dropbox, under my Mac user directory. Your example may be different.

    library(devtools)
    library(granova)
    setwd("~/Dropbox/dev")
    load_all("granovaGG")
    data(poison)
    granovagg.1w(poison$RateSurvTime, group = poison$Group, dg = 2)
  4. Remember to bring git back up to speed by re-checking out the dev branch when you're done:

    cd ~/Dropbox/dev/granovaGG/
    git checkout dev