Hi,
I don't understand the error message. May you someone assist how to solve this please?
Thank you
wind_2018 %>%
mutate(germany = ifelse(country_name=="Germany", "True", "False"),
country_name = fct_recode(country_name, "<span style='color:firebrick'>Germany</i>" = "Germany"))%>%
ggplot(aes(x = gigawatts, y = country_name)) +
geom_col(fill=germany, alpha = .9, show.legend = FALSE) +
scale_fill_manual(values = c("steelblue", "firebrick")) +
scale_x_continuous(labels = scales::comma) +
ylab(NULL) +
theme_minimal_vgrid() +
theme(axis.text.y=element_markdown())
#>Error in UseMethod("mutate") :
no applicable method for 'mutate' applied to an object of class "c('gg', 'ggplot')"
Created on 2022-03-31 by the reprex package (v2.0.1)