vqv / ggbiplot

A biplot based on ggplot2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The ggbiplot() now available on CRAN in another package as AMR::ggplot_pca()

msberends opened this issue · comments

Just to let you know: the code of the ggbiplot() function of this package as developed over 5 years ago, was used by us to create the ggplot_pca() function for the AMR package. An update containing this function is now available on CRAN and we maintain it actively. Many thanks for your work, Vince Vu!

Under Source, we tried our best to give proper attribution so there we state:

Source

The ggplot_pca() function is based on the ggbiplot() function from the ggbiplot package by Vince Vu, as found on GitHub: https://github.com/vqv/ggbiplot (retrieved: 2 March 2020, their latest commit: 7325e88; 12 February 2015).

As per their GPL-2 licence that demands documentation of code changes, the changes made based on the source code were:

  1. Rewritten code to remove the dependency on packages plyr, scales and grid
  2. Parametrised more options, like arrow and ellipse settings
  3. Hardened all input possibilities by defining the exact type of user input for every argument
  4. Added total amount of explained variance as a caption in the plot
  5. Cleaned all syntax based on the lintr package, fixed grammatical errors and added integrity checks
  6. Updated documentation

Our source code for the ggplot_pca() function is available here on GitHub.

This also 'solves' issues #61, #60, #57, #56, #53, #52, #51, #49, #34, #72 and probably more.

Awesome, didn't know about that, thanks for posting.