[R] ggplot - start axis label with superscript

S Ellison S.Ellison at LGCGroup.com
Tue Oct 14 13:34:00 CEST 2014


 
> I'm stuck trying to begin an axis label in ggplot with a superscript. 
For a crude work-round, you could try

ggplot(mydata) +
  aes(x = x, y = y) +
  geom_line() +
  ylab(expression(paste(' '^{14}, "C", sep = "")))


S Ellison




*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list