map_Lombardia_stations {ARPALData}R Documentation

Generate a map of the selected stations

Description

'get_ARPA_Lombardia_AQ_data' represents on a map (polygon of Lombardy) the location of the stations contained in a data frame of class 'ARPALdf'. Data can be either a ARPALdf of observed data (from 'get_ARPA_Lombardia_xxx' commands) and an ARPALdf obtained as registry (from 'get_ARPA_Lombardia_xxx_registry' command).

Usage

map_Lombardia_stations(
  data,
  title = "Map of ARPA stations in Lombardy",
  prov_line_type = 1,
  prov_line_size = 1,
  col_points = "blue",
  xlab = "Longitude",
  ylab = "Latitude"
)

Arguments

data

Dataset of class 'ARPALdf' containing the stations to plot on the map. It can be either a ARPALdf of observed data (from 'get_ARPA_Lombardia_xxx' commands) and an ARPALdf obtained as registry (from 'get_ARPA_Lombardia_xxx_registry' command).

title

Title of the plot. Deafult is 'Map of ARPA stations in Lombardy'

prov_line_type

Linetype for Lombardy provinces. Default is 1.

prov_line_size

Size of the line for Lombardy provinces. Default is 1.

col_points

Color of the points. Default is 'blue'.

xlab

x-axis label. Default is 'Longitude'.

ylab

y-axis label. Default is 'Latitude'.

Value

A map of selected stations across the Lombardy region

Examples


## Download daily concentrations observed at all the stations in 2020.
d <- get_ARPA_Lombardia_AQ_data(ID_station = NULL, Year = 2020, Frequency = "daily")
## Map the stations included in 'd'
map_Lombardia_stations(data = d, title = "Air quality stations in Lombardy")



[Package ARPALData version 1.2.3 Index]