Query on a means to uses a "blink" display

6 views
Skip to first unread message

Neotropical bat risk assessments

unread,
Apr 7, 2015, 7:12:44 AM4/7/15
to ggp...@googlegroups.com
Hi all,

Is there a package that uses ggplot that will use use a "blink" format
to compare two or more plots?
Apparently for astronomy comparing sky images of static stars or
celestial bodies with one that may be moving.
By flashing back and forth between the static image and the one that
contains the same points the one that is moving becomes obvious as the
moving one shifts in position.

I am interested in seeing how to compare plots of data sets of X vs Y
plots of multiple data sets to see what shifts there are between them
that may otherwise be subtle by "blinking" of flashing the displays from
one image to another.

Bruce

Greg Snow

unread,
Apr 7, 2015, 12:12:19 PM4/7/15
to Neotropical bat risk assessments, ggplot2
If you really need a package then you could use the animate package to
create a movie that is just the 2 graphs "blinking" back and forth.
But you really don't need a package.

One simple option would be a for loop that creates the 1st plot, calls
Sys.sleep, creates the 2nd plot, then calls Sys.sleep.

Probably a little better would be to just use a graphics device that
has history turned on (which may depend on what OS you are on and what
interface you are using). Turn on the history option if needed, then
create the 2 plots and use the history mechanism to switch back and
forth, or load both into a program like GIMP or Photoshop on different
layers and toggle the visibility of the top plot to blink between
them.

In any of these cases it will be important to make sure that the plots
line up so that the point that don't change don't move. specifying an
exact ylim and xlim will usually suffice.
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
> --- You received this message because you are subscribed to the Google
> Groups "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ggplot2+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com
Reply all
Reply to author
Forward
0 new messages