[R] (Cross-)validating GLM including factors

2015-02-02 Thread Roland Pape
Dear list, I would like to validate various GLMs, all of them containing (among others) several factors as predictors. I thought about using cv.glm from the boot package, but necessarily got the error factor xy has new level z. Is there any function to easily cross validate LMs or GLMs

Re: [R] Conditional coloring of area between curves

2013-06-07 Thread Roland Pape
Hi Duncan, that's exactly what I was looking for! The series have common times, so that's no problem. Thanks a lot! Roland Von: Duncan Murdoch [murdoch.dun...@gmail.com] Gesendet: Donnerstag, 6. Juni 2013 18:45 An: Roland Pape Cc: r-help@r-project.org

[R] Conditional coloring of area between curves

2013-06-06 Thread Roland Pape
Dear list, I have two time series of temperatures from different sites plotted in the same diagram and would like to color the area between the curves differently, dependent on whether site 1 is cooler than site 2 (colored let's say in blue) or warmer (red). While polygone() works fine to