ML_for_Hackers icon indicating copy to clipboard operation
ML_for_Hackers copied to clipboard

ggplot 0.9.x warnings and errors

Open DanBuchan opened this issue 13 years ago • 3 comments

For every ggplot() function call the "legend = FALSE" setting/parameter needs to be changed to guide="none"

Also when plotting figure 9-4 in chapter 9 the latest ggplot now requires that library(scales) be loaded and it means that the scale_size() needs to be changed from: scale_size(to=c(2,2)) to scale_size(range=c(2,2))

DanBuchan avatar Jun 04 '12 14:06 DanBuchan

Great, thanks Dan! Are these changes backward compatible to older versions?

On Mon, Jun 4, 2012 at 10:39 AM, DanBuchan < [email protected]

wrote:

For every ggplot() function call the "legend = FALSE" setting/parameter needs to be changed to guide="none"

Also when plotting figure 9-4 in chapter 9 the latest ggplot now requires that library(scales) be loaded and it means that the scale_size() needs to be changed from: scale_size(to=c(2,2)) to scale_size(range=c(2,-2))


Reply to this email directly or view it on GitHub: https://github.com/johnmyleswhite/ML_for_Hackers/issues/7

drewconway avatar Jun 04 '12 14:06 drewconway

I have no idea. My R-fu doesn't extend to understanding how to load older versions of R packages (I'll hand in my geek badge later)

What I did read suggested that scale handling in ggplot 0.9.x has been completely rewritten to require the scales package so I'd guess that such changes aren't backwards compatible. But I haven't actually checked so that may just be wild conjecture.

DanBuchan avatar Jun 04 '12 14:06 DanBuchan

I think these changes are probably not backwards-compatible. The recent ggplot2 changes were breaking.

johnmyleswhite avatar Jun 05 '12 01:06 johnmyleswhite