Usage
conditionalQuantile(mydata, obs = "obs", mod = "mod", type = "default",
bins = 31, min.bin = c(10, 20), xlab = "predicted value",
ylab = "observed value", col = brewer.pal(5, "YlOrRd"), key.columns = 2,
key.position = "bottom", auto.text = TRUE, ...)
Arguments
mydata
A data frame containing the field obs
and mod
representing observed and modelled values.
obs
The name of the observations in mydata
.
mod
The name of the predictions (modelled values) in mydata
.
type
type
determines how the data are split
i.e. conditioned, and then plotted. The default is will produce a
single plot using the entire data. Type can be one of the built-in
types as detailed in cutData
e.g. “season”,
“year”, “weekday” and so on. For example, type
= "season"
will produce four plots --- one for each season.It is also possible to choose type
as another variable in the data
frame. If that variable is numeric, then the data will be split into four
quantiles (if possible) and labelled accordingly. If type is an existing
character or factor variable, then those categories/levels will be used
directly. This offers great flexibility for understanding the variation
of different variables and how they depend on one another.
Type can be up length two e.g. type = c("season", "weekday")
will
produce a 2x2 plot split by season and day of the week. Note, when two
types are provided the first forms the columns and the second the rows.
bins
Number of bins to be used in calculating the different quantile
levels.
min.bin
The minimum number of points required for the estimates of
the 25/75th and 10/90th percentiles.
xlab
label for the x-axis, by default “predicted value”.
ylab
label for the y-axis, by default “observed value”.
col
Colours to be used for plotting the uncertainty bands and median
line. Must be of length 5 or more.
key.columns
Number of columns to be used in the key.
key.position
Location of the key e.g. “top”,
“bottom”, “right”, “left”. See lattice
xyplot
for more details.
auto.text
Either TRUE
(default) or FALSE
. If
TRUE
titles and axis labels etc. will automatically try and format
pollutant names and units properly e.g. by subscripting the `2' in NO2.
…
Other graphical parameters passed onto cutData
and
lattice:xyplot
. For example, conditionalQuantile
passes the option
hemisphere = "southern"
on to cutData
to provide southern
(rather than default northern) hemisphere handling of type = "season"
.
Similarly, common axis and title labelling options (such as xlab
,
ylab
, main
) are passed to xyplot
via quickText
to handle routine formatting.