vqv / ggbiplot

A biplot based on ggplot2
302 stars 159 forks source link

Change PCA arrows labels #32

Open lrocax opened 7 years ago

lrocax commented 7 years ago

Hi,

How can I change in the script below the PCA arrows labels (e.g., change MalicAcid to MA and Proline to PR)?

Script: library(ggbiplot) data(wine) wine.pca <- prcomp(wine, scale. = TRUE) ggbiplot(wine.pca, obs.scale = 1, var.scale = 1, groups = wine.class, ellipse = TRUE, circle = TRUE) + scale_color_discrete(name = '') + theme(legend.direction = 'horizontal', legend.position = 'top')

Thanks