Function for plotting shoreline displacement curves. Calling to plot without providing a target curve will display the four underlying geologically derived displacement curves.

displacement_plot(
  target_curve = NA,
  displacement_curves = c("Horten", "Porsgrunn", "Tvedestrand", "Arendal"),
  target_name = "Target curve",
  target_line = "solid",
  target_col = "red",
  target_alpha = 1,
  displacement_line = c(Horten = "solid", Porsgrunn = "solid", Tvedestrand = "solid",
    Arendal = "solid"),
  displacement_col = c(Horten = "darkorange", Porsgrunn = "darkgreen", Tvedestrand =
    "blue", Arendal = "black"),
  displacement_alpha = 1,
  greyscale = FALSE
)

Arguments

target_curve

Data frame holding a shoreline displacement curve.

displacement_curves

Character vector specifying which geologically informed displacement curves should be plotted. Accepted values are c("Horten", "Porsgrunn", "Tvedestrand", "Arendal"). All are included by default.

target_name

Character value specifying the name that is given to the target curve, if provided. Defaults to "Target curve".

target_line

Character value specifying the line type that is used for the target curve, if this is provided. Defaults to "solid".

target_col

Character value specifying the colour that is used for the target curve, if this is provided. Defaults to "red".

target_alpha

Numerical value specifying the alpha value that is used for the target curve, if this is provided. Defaults to 1.

displacement_line

Character vector specifying the line types that are used for the geological displacement curves to be plotted. Defaults to c("Horten" = "solid", "Porsgrunn" = "solid", "Tvedestrand" = "solid", "Arendal" = "solid").

displacement_col

Character vector specifying the colours that are used for the geological displacement curves to be plotted. Defaults to c("Horten" = "darkorange", "Porsgrunn" = "darkgreen", "Tvedestrand" = "blue", "Arendal" = "black").

displacement_alpha

Numerical value specifying the alpha value that are used for all of the geological displacement curves to be plotted. Defaults to 1.

greyscale

Logical value indicating whether the plot should be in greyscale or not. Defaults to FALSE.

Value

A plot displaying the underlying shoreline displacement curves and, if provided, a target curve.

Examples

# Empty plot for speed
displacement_plot(displacement_curves = "")