Question: Maximum values in plot

1

Grunir112 •

**10**wrote: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.

32kTake a look at

`?which.max`

and maybe`?max.col`

functions in R.1.7k