Remove plot axis values


Question

I was just wondering if there is a way to get rid of axis values, either the x-axis or y-axis respectively, in an r-plot graph.

I know that axes = false will get rid of the entire axis, but I would only like to get rid of the numbering.

1
144
12/22/2017 11:08:40 AM

Remove numbering on x-axis or y-axis:

plot(1:10, xaxt='n')
plot(1:10, yaxt='n')

If you want to remove the labels as well:

plot(1:10, xaxt='n', ann=FALSE)
plot(1:10, yaxt='n', ann=FALSE)
179
7/20/2009 3:59:29 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon