[R-sig-Geo] Tweak legend in image.plot()
Muhammad Rahiz
muhammad.rahiz at ouce.ox.ac.uk
Sun Jan 10 15:09:40 CET 2010
Hi all,
I've plotted my data using;
> image.plot(data, zlim=c(0,800), add=FALSE, nlevel=100, horizontal=T,
legend.shrink=0.5, legend.width=.8, col=tim.colors(100))
From here, I'd like to make adjustments to the legend like;
1. Reversing the scale.
For example, the legend plots zlim as 0= blue to 800=red. Since I'm
dealing with rainfall data, it's more visually logical to express
highest precipitation as blue. Hence 0 = red to 800 = blue would be desired.
2. Shifting the legend up by 2inches from the bottom of the page
3. Changing the legend's font size/type.
Does anyone have any suggestions?
Muhammad
--
Muhammad Rahiz | Doctoral Student in Regional Climate Modeling
Climate Research Laboratory, School of Geography & the Environment
Oxford University Centre for the Environment, University of Oxford
South Parks Road, Oxford, OX1 3QY, United Kingdom
Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974
Email: muhammad.rahiz at ouce.ox.ac.uk
More information about the R-sig-Geo
mailing list