Unexpectedly for the command:
seq(-0.30,0.60,0.10)
i receive the answer:
[1] -3.000000e-01 -2.000000e-01 -1.000000e-01 5.551115e-17 1.000000e-01 2.000000e-01 3.000000e-01 4.000000e-01 5.000000e-01
[10] 6.000000e-01
Note the non zero value in 4th element, whereas for the command:
seq(-0.40,0.60,0.10)
The return result is (as expected):
[1] -0.4 -0.3 -0.2 -0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6
I suppose this is a round problem.
The issue here is that I am using the seq command for creating a legend and therefore my legend becomes badly formatted.
Apart from the obvious replacement of the value or the construction of a c()
command, did anyone else get this error? Is this a bug?
I am using Rstudio Version 1.0.136 and R version 3.3.2 (2016-10-31).