Remove plot axis values

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

    you can also put labels inside plot:

    plot(spline(sub$day, sub$counts), type ='l', labels = FALSE)
    

    you'll get a warning. i think this is because labels is actually a parameter that's being passed down to a subroutine that plot runs (axes?). the warning will pop up because it wasn't directly a parameter of the plot function.

提交回复
热议问题