Entering edit mode
7.9 years ago
Grunir112
▴
10
I have a plot,where y-axis are obervations and x-axis is time. I have to find the maximun (x,y point) from the plot. I used max(), but I only figured out the obervation value but not the time point where this max obervation value is. Could someone help me please?
And how is the data structured? You can probably find this easier in your original dataframe/matrix than in a plot.
Take a look at
?which.max
and maybe?max.col
functions in R.