Re: [R] gathering denominator under frac

2024-02-02 Thread Bert Gunter
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."

Re: [R] gathering denominator under frac

2024-02-02 Thread Bert Gunter
... 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

Re: [R] gathering denominator under frac

2024-02-02 Thread Rui Barradas
À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  

[R] gathering denominator under frac

2024-02-02 Thread Troels Ring
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