search for: ylat

Displaying 2 results from an estimated 2 matches for "ylat".

Did you mean: flat
2010 Oct 11
2
filled.contour: colour key decoupled from main plot?
...of tenths of the data in order to capture the whole range (of rainfall for example), including the more extreme values both sides. In the colour key this results in uneven distribution of the colour bars (and I understood why). Here is the code with simplistic data: xlon <- seq(10, 60, len=10) ylat <- seq(20, 50, len=10) prcp <- abs(rnorm(length(xlon)*length(ylat)))*1000 zprcp <- array(zprcp,c(length(xlon),length(ylat))) zprcp.colour <-c("#EDFFD2","#00FFD2","#00F0FF","#00B4FF","#0078FF","#003CFF","#0000FF",&qu...
2012 Aug 06
0
GAM and interpolation?
...on a marked spatial point process (cases and controls). I use the mgcv package to fit a GAMM model with a binary outcome, a parametric part (var1+..+varn), a spline used for the spatial variation, and a random effect coded through another spline in this form: gam(outcome~var1+.+varn+s(xlong+ylat)+s(var, bs="re"), data=MyData, family=binomial(link=logit)) My purpose is to calculate a risk map adjusted on my covariates to look for compare and look for obvious differences with a risk map calculated by kernel ratio. However...the big deal is to interpolate my model to estimate t...