get_model_data | R Documentation |
Function to get modelresults for the same location and variables for multiple runs
get_model_data(filename, locs, vars)
filename |
the name of the file containg the binairy output |
locs |
list of locations to be be extracted |
vars |
list of variables to be be extracted |
A dataframe with model output values for submod
and locmod
.
library(Waternet) submod <- c("OXY", "Cl") locmod <- c("LOX003","LOX009") df <- get_model_data("data/testdata.his", locmod, submod) library(ggplot2) plot <- ggplot(df, aes(time, value)) + geom_line(aes(color = variable), size = 1) + facet_grid((variable ~ location), scales = "free") plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.