R/transformr.R

Defines functions transform_sf transform_polygon transform_path

transform_path <- function(...) {
  if (!requireNamespace('transformr', quietly = TRUE)) {
    stop('The transformr package is required to tween paths and lines')
  }
  transformr::tween_path(...)
}
transform_polygon <- function(...) {
  if (!requireNamespace('transformr', quietly = TRUE)) {
    stop('The transformr package is required to tween polygons')
  }
  transformr::tween_polygon(...)
}
transform_sf <- function(...) {
  if (!requireNamespace('transformr', quietly = TRUE)) {
    stop('The transformr package is required to tween sf layers')
  }
  transformr::tween_sf(...)
}

Try the gganimate package in your browser

Any scripts or data that you put into this service are public.

gganimate documentation built on Sept. 8, 2022, 5:09 p.m.