gganimate
gganimate copied to clipboard
transitions fail in geom_contour_fill
In another round of testing, I can't animate metR::geom_contour_fill()
, a version of geom_contour()
that returns closed polygons.
library(metR)
library(data.table)
library(ggplot2)
library(gganimate)
geo <- geopotential[date %in% unique(date)[1:3]]
g <- ggplot(geo, aes(lon, lat)) +
geom_contour_fill(aes(z = gh))
These are the different fields
g + facet_wrap(~date)
g + transition_time(date)
#> Error in data.frame(..., check.names = FALSE): arguments imply differing number of rows: 14, 100
g + transition_manual(date)
#> Error: Additional frame variables must have the same length as the number of frames
Created on 2018-08-02 by the reprex package (v0.2.0).
Have the same issue