所附示例生成条件密度图。在示例中,我可以使用ylab = NA
删除“x”轴标签,如果我yaxlabels = "n"
同时使用左右刻度标签,则删除。
如何仅抑制左侧标签(即“0”和“1”)并保持右侧概率标度?
# Example
Forest = c(1,0,1,1,1,0,1,1,0,1)
change = c(-1, 3, 1, 4, 1, 1, -1, 1, -1, 6)
mydata = data.frame(Forest,change)
x = factor(mydata$Forest)
cdplot(x~mydata$change, ylab = NA, xlab = NA)