我正在尝试从数据帧中提取列,并将其用于直方图 ggplot(data=data1$X_5_5)+hist() 这里,X_5_5是列的名称。must be a data frame, or other object coercible by `fortify()`, not an integer vector 我不明白从dataframe提取的列为什么不是
我有一个问题,我想用特定的过滤器绘制列的频率直方图,但是它告诉我Error ggplot2 doesn't know how to deal with data of class numeric。ggplot(dataset, aes(x=perdayDiff)) + geom_histogram(binwidth=.5)工作很好,但是
ggplot(subset(dataset$perdayDiffdoesn't know how to deal with data