col2rgb(d)中的错误:补间中无效的颜色名称 [英] Error in col2rgb(d) : invalid color name in tweenr

查看:553
本文介绍了col2rgb(d)中的错误:补间中无效的颜色名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac上的RStudio中使用tweenr时,我经常遇到此错误,但无法使用虚拟数据集复制它。我的数据集是我要应用tween_states的数据帧列表。在伪数据上工作正常,但始终在col2rgb(d)中返回Error:无效的颜色名称,并且每当我使用实数据时都将我的第一个字符列识别为颜色。 >解决方案

遇到同样的问题!我通过确保第一列仅包含数字而不包含字符串来解决此问题。出于任何原因,如果第一列包含字符串,则将其解释为颜色。我不需要像其他海报所建议的那样减少任何栏目。


I'm getting this error a lot in using tweenr in RStudio on mac but I'm unable to replicate it using dummy dataset. My dataset is a list of data frames with I want to apply tween_states. Works fine on dummy data, but always return Error in col2rgb(d) : invalid color name and recognise my first character column as a 'color' whenever I use real data.

解决方案

Getting the same issue! I fixed it by making sure the first column only has numbers, no strings. For whatever reason the first column is interpreted as colors if it contains strings. I didn't need to trim any columns down as the other poster suggested.

这篇关于col2rgb(d)中的错误:补间中无效的颜色名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆