pir
pir

Reputation: 5933

R - Removing tick mark without removing label

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

Answers (1)

joran
joran

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

Related Questions