[R] cairo device and locator on windows

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Sun, 17 Apr 2011 23:34:10 -0400


In several tries, I am finding the locator and identify functions on the cairo device on Windows,
with R-2.13.0, do not seem to work correctly. Here is my experience with locator where I click the
four corners of the device window.

First, with the windows() device, the results are consistent with what I see on screen
> windows()
> plot(1,1)
> locator()
$x
[1] 0.6075000 1.3981252 1.3653126 0.6090625 $y
[1] 0.6117440 0.6239533 1.3931395 1.3983721
>

Second, with the Cairo device, the results are not consistent with what I see on screen.
> library(cairoDevice)
> Cairo()
> plot(1,1)
> locator()

$x
[1] 0.6715602 1.7007429 1.7071620 0.6672808 $y
[1] 0.2775717 0.2945700 1.3144688 1.3290388
>

Any guidance on making Cairo work would be appreciated.

Rich

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 18 Apr 2011 - 03:36:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Apr 2011 - 20:50:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive