[R] Ljung-Box test (Box.test)

2012-06-26 Thread Steven Winter
I fit a simple linear model y = bX to a data set today, and that produced 24 residuals (I have 24 data points, one for each year from 1984-2007). I would like to test the time-independence of the residuals of my model, and I was recommended by my supervisor to use the Ljung-Box test. The Box.tes

[R] Drawing (lon,lat) coordinates onto the image of a world

2012-06-26 Thread Steven Winter
Given a set of latitude and longitude coordinates pairs (stored in variables "latitudevals" and "longitudevals"), I would like to plot them onto the image of a equirectangular world map. I would like to plot each coordinate pair with a red circle, if possible. Does anyone have any suggestions as

[R] Question on EBImage package

2012-06-20 Thread Steven Winter
I am having trouble using the "resize" function (in the package EBImage) with matrices containing double values. Let's say I have a matrix 'b' with these values:   > a = > c(1.25,1.555,1.245,1.265,1.656,1.235,1.848,1.959,1.548,1.245454,1.989,1.24) > b = matrix(a,4,3) > b   [,1]  [,2] [,3