Learn R Programming

NOAAWeather (version 0.1.0)

plot_calhmap: calendar heat map of weather data

Description

generate calendar heat map for a given time period, measure, location, and state

Usage

plot_calhmap(online = TRUE, from = "2017-01-01", to = "2017-01-31",
  measure = "t_max", location = "Wolf Point", state = "MT", text = TRUE)

Arguments

online

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

from

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

to

End of date range. Default: 2017-01-31

measure

metric for which time series plot is needed. Default: "t_max"

location

Valid location supported by NOAA, use getAllLocations for view avaialble locations. Default: "Wolf Point"

state

Valid two letter code of US state. Default: "MT"

text

if TRUE, print the values of each day on heatmap, if FALSE values are not printed

Value

calendar heat map for a given time period, measure, location, and state

Examples

Run this code
# NOT RUN {
plot_calhmap(online=FALSE,from="2017-01-01",
to="2017-01-03", measure="t_max",
location='Austin', state='TX')
# }

Run the code above in your browser using DataLab