Learn R Programming

NOAAWeather (version 0.1.0)

plot_spatial: geo-spatial heat map of weather data

Description

generate geo-spatial heat map for a given date and measure across all NOAA weather stations

Usage

plot_spatial(online = TRUE, Date = "2017-01-01", measure = "t_max")

Arguments

online

if TRUE(default),realtime data is pulled from the API. if FALSE, data is pulled from sample offline database

Date

Beginning of date range. Default: 2017-01-01

measure

metric for which geo-spatial heat map is needed. Default: "t_max"

Value

geo-spatial heat map for a given date and measure across all NOAA weather stations

Examples

Run this code
# NOT RUN {
plot_spatial(online=FALSE,
Date="2017-01-10",
measure="t_max")
plot_spatial(online=TRUE,
Date="2017-01-10",
measure="t_official")
# }

Run the code above in your browser using DataLab