【发布时间】:2021-07-23 19:03:12
【问题描述】:
我收到以下错误:
UseMethod("rescale") 中的错误:'rescale' 没有适用的方法 应用于“c('haven_labelled', 'vctrs_vctr', '双')"
这是我的情节代码:
ggplot(data_q_agg3, aes(x = 'qmrcms', y = 'count', fill = 'qbncap')) + geom_col(position = "dodge")
data_q_agg3 是通过这样做创建的(见图):
data_q_agg3 <- group_by(na.omit(data_jointest), qbncap, qmrcms) %>%
summarise(count=n())
data_jointest 是通过这样做创建的(只需将两个数据框添加在一起):
data_jointest <- rbind(data_q_clean2, data_q_clean4, deparse.level = 0)
最后,在尝试制作情节时,我收到以下消息/错误:
Don't know how to automatically pick scale for object of type haven_labelled/vctrs_vctr/double. Defaulting to continuous.
Don't know how to automatically pick scale for object of type haven_labelled/vctrs_vctr/double. Defaulting to continuous.
Error in UseMethod("rescale") :
no applicable method for 'rescale' applied to an object of class "c('haven_labelled', 'vctrs_vctr', 'double')"`
非常感谢您帮助解决此错误!!!
【问题讨论】:
标签: r double rescale r-haven object-class