Re: [R] plot representation of calculated value known to be 7.4

2017-12-26 Thread Troels Ring
Thanks a lot -- yes it is amazing how much coherent detail has been put into this and kept integrated :-) Best wishes Troels Den 26-12-2017 kl. 16:35 skrev Bert Gunter: Inline. -- Bert Thanks a lot - formatting the ordinate as ylim=c(4,10) before plotting pH also removed the problem, an

Re: [R] plot representation of calculated value known to be 7.4

2017-12-26 Thread Bert Gunter
Inline. -- Bert > Thanks a lot - formatting the ordinate as ylim=c(4,10) before plotting pH > also removed the problem, and options(digits=10) confirmed that pH was not > all exactly 7.4 - as I knew. Still I wonder just why R chooses to > plot(ATOT,pH) as shown with repeated "7.4" instead of s

Re: [R] plot representation of calculated value known to be 7.4

2017-12-25 Thread Troels Ring
Thanks a lot - formatting the ordinate as ylim=c(4,10) before plotting pH also removed the problem, and options(digits=10) confirmed that pH was not all exactly 7.4 - as I knew. Still I wonder just why R chooses to plot(ATOT,pH) as shown with repeated "7.4" instead of some more detailed represe

Re: [R] plot representation of calculated value known to be 7.4

2017-12-25 Thread Bert Gunter
Note that ?all.equal clearly says that it tests for **approximate equality only** with tolerance "close to 1.5 e-8. So.. > all.equal(z,pH, tol = 1e-15) [1] "Mean relative difference: 6.732527e-11" and > print(pH, digits =15) ## output omitted Shows you what's going on. Cheers, Bert Bert Gu

Re: [R] plot representation of calculated value known to be 7.4

2017-12-25 Thread Troels Ring
Dear friends - copy paste missed SID <- c() before the first loop - sorry BW Troels Den 25-12-2017 kl. 19:12 skrev Troels Ring: Dear friends - merry Christmas and thanks a lot for much help during the year! In the example below I fail to understand how the calculated value pH is represen

[R] plot representation of calculated value known to be 7.4

2017-12-25 Thread Troels Ring
Dear friends - merry Christmas and thanks a lot for much help during the year! In the example below I fail to understand how the calculated value pH is represented in a simple plot - also included. The calculations are useful in practice and likely to be right in principle but I cannot see ho