[R] How to show a specific value of a ggplot2

Neha gupta neh@@bo|ogn@90 @end|ng |rom gm@||@com
Fri May 27 01:40:10 CEST 2022


I have a ggplot2 which has x-values 0-200 and y values 0-10

p=plot(mydata)
p+xlim(0, 200)

I want to show what is the y value when we have 75 as x value. The graph
which is displayed has a broad range (like 0-50, 50-100 etc on x axis) and
cannot determine the exact value of y at the value of 75 on x-axis.

Thank you

	[[alternative HTML version deleted]]



More information about the R-help mailing list