[R] par(mfrow) or split.screen with climatol roseavent plot?

2012-07-31 Thread Jan Näs
Hi I trying to add a wind rose as a plot together with other plots. Im unsing the roseavent function from the climatol package. Ive tried par(mfrow=c(2,2)) but when plotting the windrose: rosavent(windfreq_rose,4,3,ang=-3*pi/16,main="Windrose") it skips one position, and when plotting the next one

[R] interpolation to new points between geo coordinates

2012-07-02 Thread Jan Näs
Hi I have a data set with geo coordinates and values for each coordinate. I want to interpolate the values to new positions on a finer grid, also geo coordinates. I have looked at the fields package (interp.surface) and the akima package (interp) but cant quite figure what I am doing wrong, or if

[R] loop through and modify multiple data frames

2012-06-28 Thread Jan Näs
Hi Newbie question: I have a set of data frames that I want to do the same calculations on each. I've found out that I can put them in a list and loop through the list to do the calculation, but not put the results back into each data.frame.. For example three data frames cats, dogs, birds wher