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
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))