Skip to content

Target Diagram Example 4

PeterRochford edited this page Dec 21, 2016 · 2 revisions

How to create a target diagram with a legend plus changed marker colors and circles.

A fourth example of how to create a target diagram given one set of reference observations and multiple model predictions for the quantity.

This example is a variation on the third example (target3) where now a legend is added, the marker colors are changed, and the radii of circles to draw are specified. Note that symbols are used for the points when requesting a legend.

All functions in the Skill Metrics Toolbox are designed to only work with one-dimensional arrays, e.g. time series of observations at a selected location. The one-dimensional data are read in as data structures via a mat file. The latter are stored in data structures in the format: ref.data, pred1.data, pred2.dat, and pred3.dat. The plot is written to a file in Portable Network Graphics (PNG) format.

The reference data used in this example are cell concentrations of a phytoplankton collected from cruise surveys at selected locations and time. The model predictions are from three different simulations that have been space-time interpolated to the location and time of the sample collection.