I have this very super simple code, I give all the details for full reproducibility:
array=read.table('array.txt')[[1]]
vector=read.table('vector.txt')[[1]]
plot(1:5,vector,type = 'l')
lines(1:5,array)
Where array.txt
is
4.11
0.004
0.004
0.003
0.003
and vector.txt
is
23.047
7.242
6.85
7.018
6.648
The output contains only the first graph! WHY? Is it a bug of R?