Remove plot axis values

前端 未结 5 1411
后悔当初
后悔当初 2020-12-04 07:52

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

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 08:31

    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)
    

提交回复
热议问题