R Draw All Axis Labels (Prevent Some From Being Skipped)

后端 未结 6 1155
不思量自难忘°
不思量自难忘° 2020-12-09 10:20

When I manually add the following labels with (axis(1, at=1:27, labels=labs[0:27])):

> labs[0:27]
 [1] \"0\\n9.3%\"  \"1\\n7.6%\"  \"2\\n5.6%         


        
6条回答
  •  情书的邮戳
    2020-12-09 11:10

    @PLapointe just posted what I was going to say, but omitted the bonus answer.

    Set padj = 0.5 in axis to move the labels down slightly.

提交回复
热议问题