README.md

BiplotR

DOI

Give me data, and I'll give you a snazzy biplot!

A simple little package for creating nice looking PCA biplots. Just input your data matrix/frame and out pops a beautiful biplot for your data analyzing pleasure!

Install

You need the devtools R package to install. If you don't have it, install it first.

install.packages("devtools")

Now you can install biplotr!

library(devtools)
install_github("mooreryan/biplotr")

R dependencies

When you use biplotR, you'll need to make sure to import the libraries that it depends on at the beginning of your R program. Something like this:

library(ggplot2)
library(grid)
library(ggrepel)
library(biplotr)

I use the gridArrange function in the example. To use that also add this to the other library function calls listed above:

library(gridExtra)

Usage

For usage examples, check out the built in documentation for the pca_biplot function like this:

?pca_biplot

Using tibbles as input

Technically pca_biplot takes data.frames or matrices but not tibbles. A tibble will work, but it won't print out point labels correctly.

Changes



mooreryan/biplotr documentation built on Sept. 2, 2020, 8:32 a.m.