Hi @Serguey! Welcome!
You can resize the plot pane while locator()
is active (locator()
is the base R function that Fragman
uses for interactive point selection). If you both maximize and expand the plot pane, it might give you enough resolution to be more precise. Here's an example using the following code:
plot(
ggplot2::diamonds$price,
ggplot2::diamonds$depth,
pch = 20,
cex = 0.5,
log = "x",
ylim = c(55, 65)
)
my.panel <- locator(type='p', pch=1, cex=4, col='red')$x
The locator points are still there even after the plot pane has been resized smaller again (red circles):