hoods2dPrep(Vx.name, Fcst.name, thresholds = NULL, Pe = NULL, levels = NULL, max.n = NULL,
subset = NULL, loc = NULL, qs = NULL, field.type = "", units = NULL,
smooth.fun = "hoods2dsmooth", smooth.params = NULL, mapit = FALSE)## S3 method for class 'hoods2dPrep':
plot(x, ...)
## S3 method for class 'hoods2dPrep':
hist(x, ...)
hoods2dPrep
.hoods2d
). If NULL, then it is taken to be the most relaxed requirement (i.e., that an event occurs at least once in a neighborhoodhoods2dP
levels
argument.kernel2dsmooth
(kenrel2dmeitsjer
) for the specific smoothing function. The default method does not take any extra parameters.loc
argument corresponds to lon/lat coordinates (TRUE) or not (FALSE). Used by plot method function to add a map to the plots if TRUE. Note that maps placed on the plot will generally not have the correct hist
function. Not used by the plot method function.prod(xdim)
).hoods2d
, plot.hoods2d
and hoods2dPlot
.The plot
method function makes image plots of the verification set with gray contours showing the chosen thresholds for each field. It will try to add a map if the map component is TRUE and the loc coordinates are lon/lat and in the correct format (see the map function from package maps).
The hist
method function creates several histograms in two columns. The first column correspond to the verification field and the second to the forecast field. The first row shows the histogram for all values in the fields, and each successive row shows histograms for the field only where values are >= each threshold from the thresholds component of the hoods2dPrep
object. That is, (N+1) by 2 panels of histograms are displayed where N is the number of thresholds.
hoods2d
data(UKobs6)
data(UKfcst6)
data(UKloc)
hold <- hoods2dPrep( "UKobs6", "UKfcst6", thresholds=c(0.01,20.01),
levels=c(1, 3, 5, 9, 17),
loc=UKloc, field.type="QPF", units="mm/h", mapit=TRUE)
plot(hold)
hist(hold, col="darkblue")
data(geom001)
data(geom000)
data(ICPg240Locs)
hold <- hoods2dPrep( "geom000", "geom001", thresholds=c(0.01,50.01),
levels=c(1, 3, 5, 9, 17, 33, 65, 129),
loc=ICPg240Locs, field.type="QPF", units="in/100", mapit=TRUE)
plot(hold)
hist(hold, col="darkblue")
Run the code above in your browser using DataLab