Skip to contents

Plot wgn parameters comparison

Usage

plot_wgn_comparison(
  meteo_lst1,
  meteo_lst2,
  station1,
  station2,
  type1 = "set 1",
  type2 = "set 2",
  title = "comparison"
)

Arguments

meteo_lst1

first nested list of lists with dataframes. meteo_lst nested list of lists with dataframes. Nested structure meteo_lst -> data -> Station ID -> Parameter -> Dataframe (DATE, PARAMETER). Nested meteo_lst -> stations Dataframe (ID, Name, Elevation, Source, geometry, Long, Lat).

meteo_lst2

second nested list of lists with dataframes. meteo_lst nested list of lists with dataframes. Nested structure meteo_lst -> data -> Station ID -> Parameter -> Dataframe (DATE, PARAMETER). Nested meteo_lst -> stations Dataframe (ID, Name, Elevation, Source, geometry, Long, Lat).

station1

character, id of one station in the first list selected for comparison (example "ID1").

station2

character, id of one station in the second list selected for comparison (example "ID1").

type1

character, naming of the first dataset (example "measured").

type2

character, naming of the second dataset (example "netCDF").

title

character, information to be added in figure title

Value

ggplot figure of bar plots

Examples

if (FALSE) {
temp_path <- system.file("extdata", "weather_data.xlsx", package = "svatools")
met_lst <- load_template(temp_path, 4326)
plot_wgn_comparison(met_lst, met_lst, "ID9", "ID2", "Samszyce", "Glebokie", "comparison")
}