Given a table of values (say between 0 to 100) and the attached plot, what would be the simplest way using R to calculate how many of the data points fall between values 20 – 60 (the red box in the image)?
And is there a way to create that red box using R’s plotting functions (I did it using a image editor…)?
Thanks for the help.

To calculate the probability mass contained within the interval:
And then to plot the histogram and the red box: