I have an expression like this in R:
ylabel <- expression("NO"[3]*"-N-Concentration [mg/l]")
This should be the label of my y-axis on my ggboxplot.
Because the y-label is too close to the axis, I use \n
(new line) to create more distance to the axis:
ylab=paste(ylabel,"\n")
But then on my plot my label will not be shown correctly as I expected:
Does anybody know how to resolve this problem? I have searched the forum but I am unfortunately still not successful.
Edit: I just added a small example to reproduce the problem:
ylabel <- expression("NO"[3]*"-N-Concentration [mg/l]")
par(mar=c(6,8,1,1))
y=c(1,1,2,2,3,4,5)
plot(y, ylab=paste(ylabel,"\n"))