Skip to contents

Scatterplot of predicted data vs observations.

Usage

scatterPlot(
  data = NULL,
  obs = "obs",
  mod = "mod",
  title = NULL,
  subtitle = NULL,
  type = "scatter"
)

Arguments

data

data.table with observation and model values

obs

character indicating the name of the observation data column

mod

character indicating the name of the model data column

title

optional character vector with title

subtitle

optional character vector with subtitle

type

optional character to indicate the type of plot: scatter or hex

Value

A ggplot graphic object.

Details

Given a dataset with observed and model (predicted) data, the function produces a scatterplot by using the ggplot2 package.

The result of the function is a ggplot object which can be further customised with its directives.

Examples

if (FALSE) {
scatterPlot(validationData)
}