Re: [R-sig-Geo] help with color scale

2010-05-03 Thread Muhammad Rahiz
the if/ifelse function to assign a number to values that beyond a certain threshold before I plot them. Muhammad Jim Lemon wrote: On 05/03/2010 04:10 AM, Muhammad Rahiz wrote: Hi all, I hope someone can help me with this. Given, library(fields) x - array(rnorm(100),dim=c(50,50

[R-sig-Geo] help with color scale

2010-05-02 Thread Muhammad Rahiz
Hi all, I hope someone can help me with this. Given, library(fields) x - array(rnorm(100),dim=c(50,50)) image.plot(x) I want to change the range in the color bar so that the range is from -1 to 1. I did adjust the image.plot() command to image.plot(x,zlim=c(-1,1)) but the image shows

[R-sig-Geo] AsciiGrid - draw boundary

2010-03-19 Thread Muhammad Rahiz
Dear all, I'm working with data in the form of an ascii grid (British Ordnance survey grid). I've plotted the data using image.plot with success and would like to draw a boundary around the region so that values which are zero and the white plotting region can be easily distinguished. Has

[R-sig-Geo] Question about image.plot

2010-02-10 Thread Muhammad Rahiz
Dear all, I've plotted my data using the following image.plot(data, zlim=c(0,500), add=FALSE, nlevel=64, horizontal=T, legend.shrink=0.5, legend.width=.8, col=tim.colors(64)) However, I see white spaces in my image which I attribute them to values that is 500 than that defined in zlim().

[R-sig-Geo] Tweak legend in image.plot()

2010-01-10 Thread Muhammad Rahiz
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

[R-sig-Geo] readAsciiGrid - change color

2010-01-08 Thread Muhammad Rahiz
? Thanks. Muhammad -- Muhammad Rahiz | Doctoral Student in Regional Climate Modeling Climate Research Laboratory, School of Geography the Environment Oxford University Centre for the Environment South Parks Road, Oxford, OX1 3QY, United Kingdom Tel: +44 (0

Re: [R-sig-Geo] readAsciiGrid - change color

2010-01-08 Thread Muhammad Rahiz
I can use image.plot() Muhammad Rahiz | Doctoral Student in Regional Climate Modeling Climate Research Laboratory, School of Geography the Environment Oxford University Centre for the Environment South Parks Road, Oxford, OX1 3QY, United Kingdom Tel