powered by
Function for plotting terciles
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) )
data table
Name of the column containing the observed tercile category
optional title for the plot.
colors for the three categories
optional title for the colorscale
How to label the three categories
How to color missing values
Optional vector of length 4 specifying the plotting borders in order xmin, xmax, ymin, ymax.
How far should the plotting borders be extended (beyond the data range)?
# \donttest{ dt = combine(chirps_monthly[month == 12],tfc_from_efc(ecmwf_monthly[month == 12])) p = tercile_plot(dt) if(interactive()) plot(p) # }
Run the code above in your browser using DataLab