我收到以下错误:
UseMethod(“rescale”)中的错误:没有适用于“rescale”的适用方法应用于“c('haven_labelled','vctrs_vctr','double')”类的对象
这是我的情节代码:
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')"`
一些帮助来解决这个错误将非常感激!!!