私はgganimateに比較的慣れていないので、Rスタジオで単純な多項式時系列グラフを作成しようとしています.
x <- 1:100
f <- function (x){
return(-(x)^2)
}
df <- data.frame(x, y= -(x)^2)
ggplot(df, aes(x, y)) +
geom_line() +
stat_function(fun=f) +
transition_states(x, transition_length = 1, state_length = 2 )
私のエラーは次のとおりです。
" Error in transform_path(all_frames, next_state, ease, params$transition_length[i], :
transformr is required to tween paths and lines "
transition_state() に何か欠けているものがあるのだろうか? 静的グラフとしては問題ないように見えますが、時系列グラフにしたいと思います。
アドバイス/ヘルプに感謝します!! ありがとうございました !