x <- y <- matrix( 0, 50, 50)
x[ sample(1:50,10), sample(1:50,10)] <- rexp( 100, 0.25)
y[ sample(1:50,20), sample(1:50,20)] <- rexp( 400)
hold <- make.SpatialVx( x, y, thresholds=c(0.1, 0.5), field.type = "random")
look <- pphindcast2d(hold, levels=c(1, 3))
look
if (FALSE) {
data( "geom001" )
data( "geom000" )
data( "ICPg240Locs" )
hold <- make.SpatialVx( geom000, geom001, thresholds = c(0.01, 50.01),
loc = ICPg240Locs, projection = TRUE, map = TRUE, loc.byrow = TRUE,
data.name = "Geometric", obs.name = "geom000", model.name = "geom001",
field.type = "Precipitation", units = "mm/h")
look <- pphindcast2d( hold, levels=c(1, 3, 65), verbose=TRUE)
plot(look, mfrow = c(1, 2) )
plot(look, mfrow = c(1, 2), type = "line")
# Alternatively:
par( mfrow = c(1, 2) )
hoods2dPlot( look$values, args = attributes( look ),
main="Gilbert Skill Score")
}
Run the code above in your browser using DataLab