plot_daily_timeseries: Write plot files for daily weather timeseries dataframes.

Description Usage Arguments Value Examples

Description

Writes a directory with plots for every weather data time series file in the specified directory (as produced by the daily_timeseries function and saved in the "data" subdirectory of the directory given in that function's arguments) for a particular weather variable.

Usage

1
2
plot_daily_timeseries(var, date_min, date_max, 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).

date_min

A character string giving the earliest date present in the timeseries dataframe in "yyyy-mm-dd" format.

date_max

A character string giving the latest date present in the timeseries dataframe in "yyyy-mm-dd" format.

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 timeseries 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
## Not run: 
write_daily_timeseries(fips = c("37055", "15005"), coverage = 0.90,
                       date_min = "1995-01-01", date_max = "1995-01-31",
                       var = c("tmax", "tmin", "prcp"),
                       out_directory = "~/timeseries")
plot_daily_timeseries(var = "prcp", date_min = "1995-01-01",
                      date_max = "1995-01-31",
                      data_directory = "~/timeseries/data",
                      plot_directory = "~/timeseries/plots_prcp")

## End(Not run)

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