Remove plot axis values

前端 未结 5 1412
后悔当初
后悔当初 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:41

    @Richie Cotton has a pretty good answer above. I can only add that this page provides some examples. Try the following:

    x <- 1:20
    y <- runif(20)
    plot(x,y,xaxt = "n")
    axis(side = 1, at = x, labels = FALSE, tck = -0.01)
    

提交回复
热议问题