我正在尝试从箱线图中删除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")))
答案 0 :(得分:0)
首先使用x['cell']
抑制x轴,然后使用xaxt = "n"
添加axis
tick = FALSE