[R] Are centre coordinates or upper left corners used of x, y for SpatialPixels?

2008-07-01 Thread Jan.Verbesselt
Dear all, I'm working with satellite images in R and plotting them via the code below. I was wondering whether coordinates (spatial["x"], spatial["y"]) are used as centre coordinates of the pixels in the GRID? In this script; spatial["x"] & spatial["y"] are the centre coordinates of the satellite

[R] adjusting monthplot() towards a seasonal diagnostic plot for stl()

2008-02-25 Thread Jan.Verbesselt
Hi all, I would like to adjust the monthplot() of an stl() so that for a time-series with freq=12 (months): a) the curve on the panel for the k-th month graphs the seasonal values minus their monthly mean values b) add to the fig. the values of the k-th month of the seasonal + remainder, also minu

[R] color area between two time-series via polygon()?

2008-02-24 Thread Jan.Verbesselt
Hi all, I would like to color the area between two time-series. I tried it by using the polygon() function but I keeps drawing lines between beginning and end points. Is there another more appropriate function or how could I close the polygon at the end en the beginning of the time series (e.g