SamGG
July 30, 2022, 12:54pm
1
Hi,
locator() returns wrong positions with RStudioIDE 2022.07.1 Build 554 on Windows 10 whereas the positions are OK with RGui 4.0.3. There is an issue in Github but it was closed.
opened 02:29AM - 09 Dec 20 UTC
closed 02:05AM - 28 Jun 21 UTC
bug
plots
stale
<!--
IMPORTANT: Please fill out this template fully! Failure to do so will resu… lt in the issue being closed automatically.
This issue tracker is for bugs and feature requests in the RStudio IDE. If you're having trouble with R itself or an R package, see https://www.r-project.org/help.html, and if you want to ask a question rather than report a bug, go to https://community.rstudio.com/. Finally, if you use RStudio Server Pro, get in touch with our Pro support team at support@rstudio.com.
-->
### System details
RStudio Edition : Desktop
RStudio Version : 1.4.1056
OS Version : macOS 11.0.1
R Version : 4.0.3
### Steps to reproduce the problem
```r
plot(c(-1, 1, 1, -1), c(-1, -1, 1, 1))
locator(4)
```
Click on all four points. The returned coordinates are incorrect, i.e. they do no correspond to the input coordinates of the points.
### Describe the problem in detail
See above.
### Describe the behavior you expected
`locator` should return the coordinates that correspond to that of the points in graph.
<!--
Please keep the below portion in your issue, and check `[x]` the applicable boxes.
-->
- [x] I have read the guide for [submitting good bug reports](https://github.com/rstudio/rstudio/wiki/Writing-Good-Bug-Reports).
- [x] I have installed the latest version of RStudio, and confirmed that the issue still persists.
- [ ] If I am reporting a RStudio crash, I have included a [diagnostics report](https://support.rstudio.com/hc/en-us/articles/200321257-Running-a-Diagnostics-Report).
- [x] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
> plot(c(-1, 1, 1, -1), c(-1, -1, 1, 1))
> locator(4)
$x
[1] -0.9726507 1.2523409 1.2503200 -0.9726507
$y
[1] -1.2502852 -1.2555507 0.9691093 0.9691093
system
Closed
August 20, 2022, 12:55pm
2
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.