BTW, for your amusement,
ylab = ~ frac(additive ~ HCO[3]^"-",
true ~ HCO[3]^"-" ))
also should work. The reason is (from ?plotmath):
"In most cases other language objects (names and calls, including
formulas) are coerced to expressions and so can also be used."
... or if I understand correctly, simply
expression(frac(additive ~ HCO[3]^"-",
true ~ HCO[3]^"-" )))
Cheers,
Bert
On Fri, Feb 2, 2024 at 3:06 AM Rui Barradas wrote:
> Às 10:01 de 02/02/2024, Troels Ring escreveu:
> > Hi friends - I'm plotting a ratio of
Às 10:01 de 02/02/2024, Troels Ring escreveu:
Hi friends - I'm plotting a ratio of bicarbonates i ggplot2 and
ylab(expression(paste(frac("additive BIC","true BIC" worked OK - but
now I have been asked to put the chemistry instead - so I wrote
Hi friends - I'm plotting a ratio of bicarbonates i ggplot2 and
ylab(expression(paste(frac("additive BIC","true BIC" worked OK - but
now I have been asked to put the chemistry instead - so I wrote
ylab(expression(paste(frac("additive",HCO[3]^"-","true",HCO[3]^"-"
- and frac saw that
4 matches
Mail list logo