locator or identify ()

791 views
Skip to first unread message

DebraJ

unread,
Nov 9, 2010, 10:36:38 AM11/9/10
to ggplot2
Does anyone know if there is an equivalent function in ggplot to base
plot's locator () or identify () functions?

I've scanned the manual but it's quite possible that I missed
something. Thanks so much for any help.

Ista Zahn

unread,
Nov 9, 2010, 12:55:31 PM11/9/10
to DebraJ, ggplot2
Hi Debra,
I don't think this functionality exists in grid graphics, but you
might find what you want in the playwith package

install.packages("playwith")
playwith(print(p))

where p is your graphic. Then under the tools menu select identify.

Hope it helps,
Ista

> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2

--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org

DebraJ

unread,
Nov 10, 2010, 3:29:41 PM11/10/10
to ggplot2
Thank you so much Ista. Unfortunately, I have been unable to make
playwith work on my Compaq laptop. Apparently there is an installation
problem with one of playwith's required packages, cairoDevice. After
installing the latest versions of R, Gtk, RGtk, and cairoDevice, I can
load playwith. But once I call playwith(print(p)) R moves very slowly
and then crashes. I may keep playing with it for a bit more but will
probably end up using base plot for the time being.

On Nov 9, 12:55 pm, Ista Zahn <iz...@psych.rochester.edu> wrote:
> Hi Debra,
> I don't think this functionality exists in grid graphics, but you
> might find what you want in the playwith package
>
> install.packages("playwith")
> playwith(print(p))
>
> where p is your graphic. Then under the tools menu select identify.
>
> Hope it helps,
> Ista
>

baptiste auguie

unread,
Nov 10, 2010, 4:02:28 PM11/10/10
to DebraJ, ggplot2
Hi,

There's grid.locator() but I don't know if it's very usable in
interaction with ggplot2's unit coordinates.

HTH,

baptiste

Reply all
Reply to author
Forward
0 new messages