Say I'm making a scatter chart with thousands of points:
ggplot(head(data, n=2000), aes(length, coverage))+ geom_point(alpha = 0.5, color = 'navyblue') + coord_trans(x='log', y='log')
alt text http://fourmidable.unil.ch/temp/scatterplot.png
I want to add the labels β20 or so of the most extreme pointsβ (in the upper right and lower right corners). They are easy to identify visually. But getting them programmatically seems a bit of a burden. (many if statements are required).
Is there any way to click on the graphical output R to get their exact coordinates?
Thanks, Yannick
source share