Skip to contents

This function generates a graph from the ECOS Runsalt model output data when temperature is held constant.

This file is obtained via Runsalt plot menu: Plot > Export Plot Data...

Usage

graph_salt_balance(
  ECOS_output,
  Temp_value = 20,
  add_crystal = TRUE,
  add_eqm = FALSE
)

Arguments

ECOS_output

A character string specifying the path to the Runsalt output file. This file is obtained via Runsalt plot menu: Plot > Export Plot Data...

Temp_value

Numeric. Temperature in degrees Celsius. Default is 20.

add_crystal

Logical. Whether to add crystallisation point labels to the graph. Default is TRUE.

add_eqm

Logical. Whether to add equilibrium point labels to the graph. Default is FALSE.

Value

A ggplot2 object representing the Runsalt model output graph.

See also

tidyRunsalt for tidying the Runsalt output before graphing.

Examples

if (FALSE) { # \dontrun{
# Graph Runsalt output file with default temperature (20 C)
graph_salt_balance("path/to/runsalt/output.txt")

# Interactive file selection, custom temperature
graph_salt_balance(file.choose(), Temp_value = 15)

# Graph with no crystallisation labels but equilibrium labels
graph_salt_balance(file.choose(), Temp_value = 15, add_crystal = FALSE, add_eqm = TRUE)
} # }