Hello everyone,
I have these 2 vectors in a type="s" plot ( reported below)
I would like to check the value of y at z=seq(0,1440, by=60)
I think that I can do it calculating a vector that report the position of
the value of y < = z for which the difference to z is minimal.
But I also guess that there should be a built-in function like locator,
that provides, given same x points, the y coordinates.
Does it actually exist?
Thank you for your help
H.
x<-1:679
and y:
[1] 2 2 2 2 2 2 2 2 2 2 2 2 2
2 3 3
[17] 3 3 3 3 3 3 3 3 3 3 3 3 3
3 3 3
[33] 3 3 3 3 3 3 4 4 4 4 4 4 4
4 4 4
[49] 4 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4
[65] 4 4 4 4 4 4 4 5 5 5 5 5 6
6 6 6
[81] 6 6 6 6 6 6 6 6 6 6 6 6 7
7 7 7
[97] 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 8
[113] 8 8 8 8 8 8 8 8 8 9 9 9 9
9 9 9
[129] 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9
[145] 9 9 9 9 9 9 10 10 10 10 10 10 12
12 12 12
[161] 12 12 12 12 12 12 12 12 12 12 12 12 12
12 12 12
[177] 12 12 12 12 12 12 12 12 12 12 12 13 13
13 13 13
[193] 13 13 13 13 13 13 13 13 13 18 18 18 18
18 18 18
[209] 18 18 18 18 18 18 18 18 18 18 18 18 18
18 19 19
[225] 19 19 19 19 19 19 19 19 24 24 24 24 24
24 24 25
[241] 25 25 25 25 25 25 25 25 25 25 25 25 25
28 28 28
[257] 28 28 28 28 28 28 28 28 28 28 28 28 28
28 28 28
[273] 28 28 28 28 28 28 29 29 29 29 29 29 29
29 29 29
[289] 29 29 29 29 29 29 29 29 29 29 29 29 30
30 30 30
[305] 30 30 30 30 30 30 30 30 30 30 30 32 32
32 32 32
[321] 32 32 32 32 32 32 32 32 33 33 33 33 33
33 33 33
[337] 33 33 33 33 33 33 33 33 33 33 33 33 33
33 33 33
[353] 33 33 33 33 33 33 33 33 34 34 34 34 34
34 34 37
[369] 37 37 37 37 37 37 37 37 37 37 37 37 37
37 37 37
[385] 37 37 37 44 44 44 44 44 44 44 44 44 44
44 44 44
[401] 44 44 44 44 44 44 44 44 44 44 44 44 44
44 44 44
[417] 44 44 44 44 44 44 45 45 60 60 61 61 61
162 162 162
[433] 162 162 162 162 162 162 162 162 162 162 162 162 162
162 162 162
[449] 162 162 162 162 162 162 162 162 162 162 162 163 163
163 163 163
[465] 163 163 163 163 163 163 163 163 163 163 163 163 163
163 163 163
[481] 163 163 163 163 239 239 239 239 239 239 239 239 239
239 239 239
[497] 239 239 239 239 239 239 239 239 239 239 239 239 239
239 239 239
[513] 239 239 604 604 604 604 604 604 604 604 604 604 604
604 605 605
[529] 605 605 605 605 605 605 605 605 605 605 605 605 605
605 605 605
[545] 605 605 605 605 605 605 605 605 605 605 605 605 605
605 605 605
[561] 606 606 606 606 845 845 845 845 845 845 845 845 845
845 845 845
[577] 845 845 845 845 845 845 845 845 845 845 845 845 845
846 846 846
[593] 846 846 846 846 846 846 846 846 846 846 846 846 846
846 846 846
[609] 846 846 846 846 846 846 846 846 846 846 846 846 846
846 847 847
[625] 847 847 847 847 847 847 847 847 847 847 847 847 847
847 847 847
[641] 929 929 929 929 929 929 929 929 929 929 929 929 929
929 930 930
[657] 930 930 930 930 930 930 930 930 930 930 930 930 930
930 930 930
[673] 933 933 933 933 933 933 1015
[[alternative HTML version deleted]]