Displaying 1 result from an estimated 1 matches for "yield1".
Did you mean:
yield
2002 Jun 13
2
text and expressions in labels
All -
I'm a novice at R and I'm having difficulty combining text and an
expression in the same label.
I just trying to get Yield (kg ha-1) and have the -1 as superscript. What
I came up with doesn't work. I'm stuck at trying to concatenate it with
any other regular text.
yield1 = "Yield (kg ha"
yield2 = expression(^-1)
yield3 = ")"
ylabel = paste(yield1, yield2, yield3)
boxplot(yield.kgha.st~env,data=lsmeans1,
boxwex=0.3,
main='Chinese Hybrids',
ylim=c(0,5300),
sub='',
ylab=ylabel,
xlab='')
any help apprec...