I am trying to add a superscript to my Y-axis title on ggplot but can't get it to work. I looked at similar questions on here such as
CodePudding user response:
Works with paste
ggplot(economics, aes(date, unemploy)) geom_line()
ylab(~paste("Total density (individuals ∙ ",L^-1,")"))