Home > Blockchain >  How to add a superscript within a parenthesis while also using another symbol to a ggplot y axis tit
How to add a superscript within a parenthesis while also using another symbol to a ggplot y axis tit

Time:10-29

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 enter image description here

CodePudding user response:

Works with paste

ggplot(economics, aes(date, unemploy))   geom_line()   
ylab(~paste("Total density (individuals ∙ ",L^-1,")"))

enter image description here

  • Related