VisualizeMapPoints {HYPEtools}R Documentation

Shiny App for visualizing Mapped Point Information.

Description

Interactive maps and plots for visualizing mapped point information, e.g. HYPE MapOutput files or model performances at observation sites.

Usage

VisualizeMapPoints(
  results.dir = NULL,
  file.pattern = "^(map|subass).*\\.(txt|csv)$",
  sites = NULL,
  sites.subid.column = 1,
  bg = NULL,
  output.dir = NULL
)

VisualiseMapPoints(
  results.dir = NULL,
  file.pattern = "^(map|subass).*\\.(txt|csv)$",
  sites = NULL,
  sites.subid.column = 1,
  bg = NULL,
  output.dir = NULL
)

Arguments

results.dir

Optional string, path to a directory containing e.g. MapOutput or Subass files that should be loaded on app initialization.

file.pattern

Optional string, filename pattern to select files in results.dir that should be loaded on app initialization. See list.files.

sites

Optional string, path to GIS file for outlet points that should be loaded on app initialization. Typically a GeoPackage (.gpkg) or Shapefile (.shp).

sites.subid.column

Optional integer, column index in the map 'data' slot holding SUBIDs (sub-catchment IDs) that should be used on app initialization.

bg

Optional string, path to GIS file with polygon geometry to plot in the background. Typically an imported sub-basin vector polygon file.

output.dir

Optional string, path to a default output directory to save captured map images.

Details

VisualizeMapPoints is a Shiny app that provides interactive maps, plots, and tables for visualizing mapped point information. The interactive Leaflet map is generated using PlotMapPoints. The app can be launched with or without the input arguments. All necessary input buttons and menus are provided within the app interface. For convenience, however, the input arguments can be provided in order to quickly launch the app with desired settings.

Value

VisualizeMapPoints returns a Shiny application object.

See Also

ReadMapOutput; PlotMapPoints

Examples

## Not run: 
if (interactive()) {
  VisualizeMapPoints(
    results.dir = system.file("demo_model", "results", package = "HYPEtools"),
    sites = system.file("demo_model", "gis", "Nytorp_centroids.gpkg", package = "HYPEtools"),
    sites.subid.column = 25,
    bg = system.file("demo_model", "gis", "Nytorp_map.gpkg", package = "HYPEtools")
  )
}

## End(Not run)


[Package HYPEtools version 1.6.2 Index]