rom a tutorial I'm using, the exercise is to run this code below.
library(datasets)
data(iris)
View(iris)
library(GGally)
ggpairs(iris, mapping=ggplot2::aes(colour = Species))
However, when I run it I get the following error:
Error in ggpairs(iris, mapping = ggplot2::aes(colour = Species)) :
could not find function "ggpairs"
I'm not sure what exactly the problem is and I can't seem to find any similar error solution. Any help would be appreciated.