How to rotate the x-axis labels 90 degrees in levelplot

前端 未结 1 1521
清酒与你
清酒与你 2020-12-15 08:03

I\'m trying to visualize a correlation map, and I think that I\'ve gotten it to work, except for the jumbling of the x-axis labels. Any suggestions for how to rotate them? S

相关标签:
1条回答
  • 2020-12-15 08:38

    As far as the rotation of the x-axis labels go, you have to use parameter scales (see ?xyplot for more information on lattice parameters). You want to modify only its x component: scales=list(x=list(rot=90)). In context:

    levelplot(cor2,
              aspect="iso", scales=list(x=list(rot=90)),
              main="Correlation Matrix", col.regions=rgb.palette(120),
              cuts=100, at=seq(0,1,0.01))
    
    0 讨论(0)
提交回复
热议问题