Reputation: 5933
I would like to remove the tick marks from a plot in R, but not the text associated with the individual tick marks. How do I do that?
My code is the following:
boxplot(boxDat ~ class, ylab = "Predictive Scoring", names = c("ANN", "Random\nForest", "Logistic\nRegression"), cex.axis=1, xaxt='n')
Upvotes: 7
Views: 12627
Reputation: 173737
Maybe something like this:
boxplot(count ~ spray, data = InsectSprays, col = "lightgray",xaxt = "n")
axis(side = 1,at = 1:6,letters[1:6],tick = FALSE)
Upvotes: 11