r - gganimate 与层有什么问题?
问题描述
我正在关注 gganimate 的基本教程:
p <- ggplot(iris, aes(x = Petal.Width, y = Petal.Length)) +
geom_point()
当我尝试下面的代码片段时:
p + transition_states(Species,
transition_length = 2,
state_length = 1)
我收到以下错误:
Error in l$setup_layer(d, plot) : attempt to apply non-function
我猜这与软件包版本有关,但有人可以帮忙吗?
谢谢
解决方案
推荐阅读
- haskell - 如何重写使用 modifyIORef' 的 Haskell 函数以使用 atomicModifyIORef'
- c# - Create multiple indexes in a transaction using C# Mongodb strongly typed driver
- html - 带有复选框的导航栏汉堡菜单不起作用
- html - 第n个孩子食谱
- python - tensorflow TFRecord k-hot 编码
- keras - Python - RNN LSTM 模型准确率低
- oracle - 如何使用不带参数的oracle存储过程在表中插入多行
- linux - Symfony 文件权限问题
- mysql - 慢 sql 查询 - 超过 15000 毫秒 - 简单的 SELECT 查询,CPU 超过 100%
- ruby-on-rails - ruby on rails 中的搜索框不显示分页结果