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

梦想与她 提交于 2019-11-28 23:29:12
plannapus

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))
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!