Show error message : "fill_alpha" can't find

98 Views Asked by At

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))
0

There are 0 best solutions below