You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in transform_path(all_frames, next_state, ease, params$transition_length[i], : transformr is required to tween paths and lines
I find the cause of this bug is the function transition_states from gganimate.
However, I don;t use av and gganimate package before and don't know how to go deeper.
I run this code and fail both on Mac and on Win.
Here are my error message and session information.
# Get latest gganimate# devtools::install_github("thomasp85/gganimate")
library(gganimate)
#> 载入需要的程辑包:ggplot2# Define the "renderer" for gganimateav_renderer<-function(vfilter="null", filename='output.mp4'){
function(frames, fps){
unlink(filename)
av::av_encode_video(frames, filename, framerate=fps, vfilter=vfilter)
}
}
# Create the gganimate plotp<- ggplot(airquality, aes(Day, Temp)) +
geom_line(size=2, colour='steelblue') +
transition_states(Month, 4, 1) +
shadow_mark(size=1, colour='grey')
# Render and show the videoq<-2df<- animate(p, renderer= av_renderer(), width=720*q, height=480*q, res=72*q, fps=25)
#> Error in transform_path(all_frames, next_state, ease, params$transition_length[i], : transformr is required to tween paths and linesutils::browseURL('output.mp4')
Here is the error message.
I find the cause of this bug is the function
transition_states
fromgganimate
.However, I don;t use
av
andgganimate
package before and don't know how to go deeper.I run this code and fail both on Mac and on Win.
Here are my error message and session information.
Created on 2018-10-30 by the reprex
package (v0.2.0).
Session info
Created on 2018-10-30 by the reprex package (v0.2.1)
Session info
The text was updated successfully, but these errors were encountered: