2014-06-23 105 views
4

我想從R中的繪圖中刪除刻度標記,但不刪除與單個刻度標記關聯的文本。我怎麼做?R - 刪除刻度標記而不刪除標籤

我的代碼如下:

boxplot(boxDat ~ class, ylab = "Predictive Scoring", names = c("ANN", "Random\nForest", "Logistic\nRegression"), cex.axis=1, xaxt='n') 

回答

7

也許是這樣的:

boxplot(count ~ spray, data = InsectSprays, col = "lightgray",xaxt = "n") 
axis(side = 1,at = 1:6,letters[1:6],tick = FALSE)