When run the code, below error message popped. Anyone can help ?
Error Message:
Error in fill_alpha(data$fill %||% "grey20", data$alpha) :
could not find function "fill_alpha"
The code :
library(tidyverse)
library(ggmosaic)
ggplot(data = titanic) +
geom_mosaic(aes(x = product(Class), fill= Survived)) +
geom_mosaic_text(size=5,aes(x = product(Class), fill = Survived))