vqv / ggbiplot

A biplot based on ggplot2
302 stars 159 forks source link

plyr dependency masks dplyr functions #51

Open barnabywalker opened 5 years ago

barnabywalker commented 5 years ago

The dependency on plyr means that ggbiplot masks functions from dplyr. This isn't too much of a problem if loading the package using library(ggbiplot), as I can just reorder my imports, but ggbiplot also loads all of plyr if you use the ggbiplot::ggbiplot() syntax.

So currently there is no way of preventing ggbiplot from masking dplyr functions without ensuring that you explicitly import ggbiplot first.

Is there some way of changing how ggbiplot uses the functions from plyr to prevent it being fully loaded when you use the ggbiplot::ggbiplot() syntax?

trickytank commented 4 years ago

I suggest you use the fork by @miraKlein. Her pull request fixes this.

As this vqv/ggbiplot repository is no longer maintained, the fix hasn't been pulled.

Install @miraKlein's version with:

devtools::install_github("miraKlein/ggbiplot")
barnabywalker commented 4 years ago

Thanks, that works perfectly!