您好, 我想要一个视觉上令人愉悦的Y轴
counts=c(Low = 3553, Mid = 203, High = 3158, Low = 13, Mid = NA, High = NA,Low = 16, Mid = 14, High = NA,Low = 1, Mid = 7, High = 21)
barplot(counts,log="y",ylab="Total counts from quadrats (Log scale)",axes=F)
axis(2, 0:4000)
答案 0 :(得分:1)
您可以在axis
中指定刻度标记的位置。另外,适当更改ylim
中的barplot
。
counts=c(Low = 3553, Mid = 203, High = 3158, Low = 13, Mid = NA,
High = NA,Low = 16, Mid = 14, High = NA,Low = 1, Mid = 7, High = 21)
barplot(counts,log="y",
ylab="Total counts from quadrats (Log scale)",
axes=F,
ylim = c(1, 4096))
axis(2, c(1, 8, 124, 4096))