如何删除Boxplot上的刻度线

时间:2019-04-05 16:37:26

标签: r

我正在尝试从箱线图中删除x轴刻度线,但保持与刻度线关联的标签。在R底下可以吗?

colors <-c("lightskyblue3", "gray78","gold1", "wheat1")
boxplot(avgscore~module, data=microbox,
names=c("Cultural Diversity","UDL","Differentiated", "Instruction","Classroom Management"),ylim = range(2.5,4.5), ylab="Average Score", 
# main="Distribution of Average Score by Module",#
col=(c("lightskyblue3", "gray78","gold1", "wheat1")))

enter image description here

1 个答案:

答案 0 :(得分:0)

首先使用x['cell']抑制x轴,然后使用xaxt = "n"添加axis

tick = FALSE