AnimatePlot: Create an animated gif of a map

Description Usage Arguments Details

View source: R/horse.R

Description

This can work with or without taxa.

Usage

1
2
3
4
5
6
AnimatePlot(start_time = NULL, stop_time = NULL, periods = NULL,
  taxa = NULL, step_size = 1, age_df = GetAgeDF(),
  specimen_df = specimens, interval = 0.5,
  use_cached_maps_only = FALSE, use_phylopics = FALSE,
  point_color = "red", gif_name = NULL, paleomaps_allages = NULL,
  single_frame = FALSE)

Arguments

start_time

The time of the first frame of the animation

stop_time

The time of the last frame of the animation before it starts looping back

periods

A vector of period names, capitalized properly (can be left blank)

taxa

A vector of taxon names (can be left blank)

step_size

How many million years to take in a single step

age_df

Data.frame of ages, typically from GetAgeDF()

specimen_df

Cached fossil localities and times

interval

How many seconds per frame

use_cached_maps_only

If TRUE, only uses the maps already in the package, rather than pulling from gplates

use_phylopics

If TRUE, use phylopic images; otherwise, use dots

point_color

If just plotting points, what color

gif_name

Path to gif, including its name

paleomaps_allages

Cache of maps

single_frame

If TRUE, just does a single frame. It picks the best time.

Details

The age range to plot can be set by the periods, the taxa, or fixed ages (which by default go from 0 to 540 MY). If taxa are specified, it uses the times those are found. If periods are specified, it uses the start and stop of those periods. If both periods and taxa are specified, it defaults to using the periods.

a <- ot(use_cached_maps_only=TRUE, step_size=1, taxa=GetTaxa())


jwiggi18/horseEvo documentation built on July 26, 2019, 8:51 a.m.