我正在绘制带有自定义刻度线的图形。我在各个时间点都缺少数据,但是具有时间点对我的信息至关重要。该图不包括上述刻度。我应该如何处理?
例如,我在9时没有任何数据,根本没有产生报价。我了解它不应将其标记为“ 9”,但仍应将其标记为刻度。
gplot(data = data, mapping = aes(x = V5, y= V3, color = V4))+
geom_point(alpha = 0.35) +
geom_jitter(alpha = 0.35) +
labs(title = "title", y = "y-label", x = "x-label")+
theme(legend.position = "none") +
scale_x_discrete(breaks = 1:27,
labels = c("1", "", "3", "", "", "6","", "", "9",
"", "", "12"))