displacement_plot {shoredate} | R Documentation |
Plot shoreline displacement curves
Description
Function for plotting shoreline displacement curves. Calling to plot without providing a target curve will display the four underlying geologically derived displacement curves.
Usage
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
|
target_name |
Character value specifying the name that is given to the
target curve, if provided. Defaults to |
target_line |
Character value specifying the line type that is used for
the target curve, if this is provided. Defaults to |
target_col |
Character value specifying the colour that is used for the
target curve, if this is provided. Defaults to |
target_alpha |
Numerical value specifying the alpha value that is used
for the target curve, if this is provided. Defaults to |
displacement_line |
Character vector specifying the line types that are
used for the geological displacement curves to be plotted. Defaults to
|
displacement_col |
Character vector specifying the colours that are
used for the geological displacement curves to be plotted. Defaults to
|
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 |
Value
A plot displaying the underlying shoreline displacement curves and, if provided, a target curve.
Examples
# Empty plot for speed
displacement_plot(displacement_curves = "")