uneven spacing on axis with R

后端 未结 3 991
夕颜
夕颜 2021-01-14 21:02

I have a problem in plotting uneven scale plot on x axis with R

Here is an example:

plot(1:100,1:100)

will give the equal tick spac

3条回答
  •  猫巷女王i
    2021-01-14 21:04

    For a logarithmic axis, use:

    plot(x,y,log="x")  ## specifies which axis to put on log scale
    

    For determining how many "tick marks" to use, check

    par()$lab
    

    Default is 5,5,7. To put more x axis labels, do

    par(lab=c(10,5,7))
    

    And for y:

    par(lab=c(5,10,7))
    

提交回复
热议问题