plot_scores: plot skill scores from data frame

Description Usage Arguments

Description

Draw map of skill scores stored in a data frame. Incomplete rows and columns are expanded (e.g. missing values, land sea mask, etc.)

Usage

1
2
3
4
plot_scores(df, value.var = "value",
  dpath = "/store/msclim/bhendj/EUPORIAS", type = c("image", "contour"),
  levels = NULL, colours = NULL, na.colour = NULL, add.map = TRUE,
  map.interior = FALSE, database = "world", title = "", ...)

Arguments

df

data frame with one score to plot (one instance)

value.var

variable name to be displayed

dpath

parent directory for grid files

type

user defined type for colour shading. Either individual grid boxes (image) or shaded contours (contour) are plotted.

levels

breaks for colour scale

colours

user defined colours (one less than levels)

na.colour

user defined colour for missing values (avoided when NULL)

add.map

map is added if TRUE

map.interior

should country boundaries be plotted?

database

name of map database to be used

title

text to be displayed in topleft corner of plot

...

additional arguments passed to image


jonasbhend/myhelpers documentation built on May 19, 2019, 7:27 p.m.