This is the first time I've encountered an issue with not using the Queen's spelling: if I call autoplot
with colour=
I get the points colored according to the referenced variable, but if I write color=
the argument gets ignored and everything is plotted in black. Code:
library(ggfortify)
library(cowplot)
pca_res <- prcomp(iris[1:4], scale = TRUE)
british <- autoplot(pca_res, data=iris, colour='Species')
us <- autoplot(pca_res, data=iris, color='Species')
plot_grid(british, us, labels=c('colour', 'color'))
Is this an issue with ggplot2
itself (I doubt it, I've never run into it previously), with autoplot
or with ggfortify
? I'd like to report it as a bug but I'm not 100% sure where the problem is. Thanks!