0
g.rank <- ggplot(data = train, aes(Result, RankDiff)) +
          geom_boxplot(fill = c("#FFF59D", "#EF9A9A", "#A5D6A7")) 
print(g.rank)

g.diff <- ggplot(data = train, aes(Result, DiffDiff)) +
          geom_boxplot(fill = c("#FFF59D", "#EF9A9A", "#A5D6A7")) 
print(g.diff)

The first plot doesn't appear in the plot history in Rstudio when I source the R file that contains the above code.

sagrules
  • 31
  • 1
  • 7
  • works for me (I don't know what the `train` data is, but if I use e.g. iris dataset to make a [reproducible example](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)) - can scroll back to see both plots in RStudio. Perhaps it is RStudio specific (I have 0.99.473) – mathematical.coffee Oct 23 '15 at 00:46
  • Also works... btw dont forget your library calls in your script – user20650 Oct 23 '15 at 01:54

0 Answers0