> 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
***
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
2 matches
Mail list logo