I have a question on how to plot the empirical detection function from the histograms of sightings in R. I want to set g(x=0.15) as my truncation distance and in order to estimate that I want to plot the g(x). I understand that the probability density function f(x) can be plotted using 'density' function. But how should I go to g(x) from there? I apologize as this might be a question more related to R.
Till now I have used the following codes for plotting g(x)
Since I have maximal detections close to the line it throws up a plot like this
The histogram from which it was generated is below
Once I make the density I find the point where y=0.15 (using abline) and find the distance on the x axis. I do not think this is correct. Can you please shed some light?