📜  更改 r 图中的 y 刻度 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:51:57.959000             🧑  作者: Mango

代码示例1
yticks = c('A', 'B', 'C')
x = c(0, 1, 2, 3, 4, 5)
y = c(1, 2, 3, 2, 1, 3)
plot(y = y, x = x, yaxt = 'n', type='b')
axis(side = 2, at = c(1,2,3), labels = yticks)