【发布时间】:2020-07-05 17:00:59
【问题描述】:
我希望每年都写在 x 轴上。这是我的代码:
ggplot(video_games, aes(x = Year)) + geom_histogram(stat = 'count') + lims(x = c(1995, 2017))
【问题讨论】:
-
ggplot(video_games, aes(x = factor(Year))) + geom_histogram(stat = 'count')应该有帮助。 -
@Duck 给出错误,不是正确的解决方案
-
所以请
dput(video_games)包含在您的问题中,以便为您提供帮助。