tercile_plot {SeaVal} | R Documentation |
Function for plotting terciles
Description
Function for plotting terciles
Usage
tercile_plot(
dt,
data_col = tc_cols(dt),
mn = NULL,
low = "orange",
mid = "cyan",
high = "green1",
name = "",
labels = c("Wetter", "Average", "Drier"),
na.value = "white",
extent = NULL,
expand.x = c(-0.5, 0.5),
expand.y = c(-0.5, 2),
dimension_check = TRUE
)
Arguments
dt |
data table |
data_col |
Name of the column containing the observed tercile category |
mn |
optional title for the plot. |
low , mid , high |
colors for the three categories |
name |
optional title for the colorscale |
labels |
How to label the three categories |
na.value |
How to color missing values |
extent |
Optional vector of length 4 specifying the plotting borders in order xmin, xmax, ymin, ymax. |
expand.x , expand.y |
How far should the plotting borders be extended (beyond the data range)? |
dimension_check |
Logical. By default the function checks that there are not multiple values per coordinate
(and subsets to the first level if there are several, e.g. to the first year and month (by appearance in |
Examples
dt = chirps_monthly[month == 12 & lat <0 & year == 2018]
p = tercile_plot(dt = dt)
if(interactive()) plot(p)
[Package SeaVal version 1.2.0 Index]