plot_hourly_timeseries: Write plot files for hourly weather time series dataframes.

Description Usage Arguments Value Examples

Description

Writes a directory with plots for every weather data timeseries file present in the specified directory (as produced by the write_hourly_timeseries function) for a particular weather variable. These plots are meant to aid in initial exploratory analysis.

Usage

1
2
plot_hourly_timeseries(var, year, data_directory, plot_directory,
  data_type = "rds")

Arguments

var

A character string specifying which weather variable for which you would like to produce plots (the variable must be present in the timeseries dataframe).

year

A year or vector of years giving the year(s) present in the time series dataframe.

data_directory

The absolute or relative pathname for the directory where your daily timeseries dataframes (produced by daily_timeseries) are saved.

plot_directory

The absolute or relative pathname for the directory where you would like the plots to be saved.

data_type

A character string indicating the type of timeseries files you would like to produce plots for (either "rds" or "csv"). This option defaults to .rds files.

Value

Writes out a directory with plots of time series data for a given weather variable for each file present in the directory specified.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
write_hourly_timeseries(fips = c("08031", "12086"), year = c(1994, 1995),
                        coverage = 0.90, var = c("wind_speed", "temperature"),
                        out_directory = "~/timeseries_hourly")
plot_hourly_timeseries(var = "wind_speed", year = c(1994, 1995),
                       data_directory = "~/timeseries_hourly/data",
                       plot_directory = "~/timeseries_hourly/plots_wind_speed")
plot_hourly_timeseries(var = "temperature", year = c(1994, 1995),
                       data_directory = "~/timeseries_hourly/data",
                       plot_directory = "~/timeseries_hourly/plots_temperature")

## End(Not run)

countyweather documentation built on May 1, 2019, 6:35 p.m.