[R] ggplot complicated ylab

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Wed Dec 16 14:17:20 CET 2020


Perhaps [1] has some useful ideas?

[1] https://stackoverflow.com/questions/13223846/ggplot2-two-line-label-with-expression

On December 16, 2020 5:02:59 AM PST, tring using gvdnet.dk wrote:
>Dear friends - I need an ylab on 2 lines -
>
>Here is what I want:
>
>exp <- expression(paste("Cumulative Na-Cl balance ","\n",
>
>                        "and (red) ",Delta,HCO[3]^"-","  mmol"))
>
>So if exp was OK ylab(exp) would work - but the "\n" doesn't seem to do
>anything and it all comes on one line. 
>
>I hope someone will point in the right direction
>
> 
>
>All best wishes
>
> 
>
>Troels Ring, Aalborg, Denmark
>
>
>This email has been scanned by BullGuard antivirus protection.
>For more info visit www.bullguard.com
><http://www.bullguard.com/tracking.aspx?affiliate=bullguard&buyaffiliate=smt
>p&url=/> 
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list