rpruim / fastR2

Foundations and Applications of Statistics: An Introduction Using R
13 stars 10 forks source link

Problems with updated fastR2 and or updated ggplot2/ggformula #13

Closed moiSch closed 3 years ago

moiSch commented 3 years ago

I updated the three packages listed above and ran into error messages with snippet(“gf-dist”). In particular, the third of these reports an error because of a missing aesthetic in gf_dist(“binom”, params = list(size = 4, prob = 0.5), kind = “histogram”, binwidth = 1) Problem eliminated on my MacBook only after restoring the Library from a prior incarnation on backup. Sorry I cannot be more specific. It took a long time to figure out which Library contained the former package state.

grover4 commented 3 years ago

I'm having the same issue. Any suggestions on how to fix this?

rpruim commented 3 years ago

Thanks for catching this. I've already fixed this in ggformula (https://github.com/ProjectMOSAIC/ggformula/issues/151)

Another solution that doesn't require updating ggformula is to use geom = 'bar' rather than kind = 'histogram'. But that isn't the preferred solution long term.

The snippet will work again once ggformula has been updated (for now to the github version, eventually to a new CRAN version).