Suppress ticks in plot in r
问题 I want to remove labels and axis from X axis, however adding new ticks. plot(1:10, ylab = "") at1 <- seq(1, 10, 0.1) axis(side = 1, at = at1, labels = FALSE) I could not get rid of y labels. 回答1: see ?par You need the xaxt argument plot(1:10, ylab = "", xaxt='n') 回答2: I am not certain what you want, but this removes the x label and uses the tick marks you are generating with at1: plot(1:10, ylab = "", xlab="") at1 <- seq(1, 10, 0.1) axis(side =1, at1, labels = F) I took the suggestion by GSee