Changes between Version 2 and Version 3 of udg/ecoms/RPackage/examples/drift


Ignore:
Timestamp:
Sep 3, 2014 5:16:09 PM (7 years ago)
Author:
juaco
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms/RPackage/examples/drift

    v2 v3  
    5353attr(,"package")
    5454[1] "sp"
    55 > # Application of the 'spplot' method, generating a lattice-type map:
    56 > spplot(df, as.table = TRUE, col.regions = colorRampPalette(c("blue","white","red")), at = seq(-2.5,2.5,.25))
    5755}}}
    5856
     57In the next lines we use the `spplot` method of package `sp`, generating a lattice-type map. In first place, we will also load a `SpatialLines` dataset remotely stored at Santander Met Group server, in order to represent the grographical lines in the lattice map generated:
    5958
    60 [[Image(image-20140902-203119.png)]]
     59{{{#!text/R
     60> load(url("http://meteo.unican.es/work/downscaler/aux/wlines.rda"), verbose = TRUE)
     61Loading objects:
     62  wlines
     63> l1 <- list("sp.lines", wlines)
     64> spplot(df, as.table = TRUE, col.regions = colorRampPalette(c("blue","white","red")), at = seq(-2.5,2.5,.25), scales = list(draw = TRUE), sp.layout = list(l1))
     65}}}
     66
     67[[Image(image-20140903-171550.png)]]
     68
    6169
    6270The results show how a increasing lead month leads to a negative bias of the forecast, demonstrating that the mean state of a variable of a forecast is not stationary through time.