Re: [R] ggplot - start axis label with superscript

2014-10-14 Thread S Ellison
> 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 ***

[R] ggplot - start axis label with superscript

2014-10-14 Thread Tom Walker
Dear help, I’m stuck trying to begin an axis label in ggplot with a superscript. While I’m fine using expression to insert them in between normal text in an axis label, this doesn’t appear to work at the start of an expression. For example: mydata <- data.frame(x = 1:10, y = 10:1) # this works