Re: [R] ggplot complicated ylab

2020-12-16 Thread tring
Thanks a lot! exp <- expression(atop("Cumulative Na-Cl balance and",paste("(red) ",Delta,HCO[3]^"-"," (mmol)"))) did the trick All best Troels -Oprindelig meddelelse- Fra: R-help På vegne af Jeff Newmiller Sendt: 16. december 2020 14:17 Til: r-help@r-project.org; tr...@gvdnet.dk; r

[R] ggplot complicated ylab

2020-12-16 Thread tring
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 lin

Re: [R] Rmpfr correlation

2020-07-12 Thread tring
Thanks a lot - solved the issue! BW Troels -Oprindelig meddelelse- Fra: Rui Barradas Sendt: 12. juli 2020 12:59 Til: tr...@gvdnet.dk; r-help mailing list Emne: Re: [R] Rmpfr correlation Hello, Why not write a function COR? Not one as general purpose as stats::cor but a simple one, t

[R] Rmpfr correlation

2020-07-12 Thread tring
Dear friends - I'm calculating buffer capacities by different methods and need very high precision and package Rmpfr is working beautifully. However, I have not been able to find out how to keep precision when finding correlations. library(Rmpfr) KA <- mpfr(10^-4.6, 128) x <- rnorm(100)*KA y <-