且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为带状图添加标签?

更新时间:2023-12-04 23:42:46

Use text and specify the y position. The stripchart is drawn with y=1, so text(x, y=1.1, ...) will draw the labels slightly above the points.

x <- c(2, 8, 11, 19)
stripchart(x)
text(x, 1.1, labels=x)

相关阅读

推荐文章