Learn R Programming

NOAAWeather (version 0.1.0)

plot_boxplot: box plot of weather data

Description

generate box plot for a given time period, measure, location, and state

Usage

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

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 box 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"

Value

box plot for a given time period, measure, location, and state

Examples

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

Run the code above in your browser using DataLab