thomasp85 / gganimate

A Grammar of Animated Graphics
https://gganimate.com
Other
1.94k stars 308 forks source link

transitions fail in geom_contour_fill #122

Open eliocamp opened 6 years ago

eliocamp commented 6 years ago

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).

systats commented 6 years ago

Have the same issue