坐山雕

导航

2021年5月7日

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 坐山雕 阅读(41) 评论(0) 推荐(0) 编辑