开始尝试使用自己的面板数据集进行打包。继续遇到此错误(下面的代码)
来自https://gist.github.com/thomasp85/05169ad44ddcc8ed56da6ff7bf7fbe36的原始代码
我的代码
ntp <- ggplot(shes13141516i, aes(IllCode1, Heconac12, size = agecat, colour = Sex)) +
geom_point(alpha = 0.7) +
scale_colour_manual(values = country_colors) +
scale_size(range = c(2, 12)) +
scale_x_log10() +
facet_wrap(~HBCode) +
theme(legend.position = 'none') +
labs(title = 'SYear: {frame_time}', x = 'IllCode1', y = 'Heconac12') +
transition_time(year) +
ease_aes('linear')
animate(p, 100, 10)
产生此错误:
Error in seq.default(range[1], range[2], length.out = nframes) :
'from' must be a finite number
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf
有什么想法吗?