ggplot2: display every nth value on discrete axis
摘要:
every_nth = function(n) { return(function(x) {x[c(TRUE, rep(FALSE, n - 1))]}) } ggplot(mpg, aes(x = class, y = cyl)) + geom_point() + scale_x_discrete 閱讀全文
posted @ 2021-05-07 20:12 坐山雕 閱讀(50) 評(píng)論(0) 推薦(0)
浙公網(wǎng)安備 33010602011771號(hào)