plot_estimates_pngs: Estimate PNGs

Description Usage Arguments

View source: R/plot-estimates.R

Description

Generates plots of climate indicator data as png files.

Usage

1
2
3
4
5
6
7
plot_estimates_pngs(data = cccharts::precipitation, x = NULL,
  by = "Indicator", facet = NULL, nrow = NULL, geom = "point",
  width = 350L, height = 350L, ask = TRUE, dir = NULL, ylimits = NULL,
  climits = NULL, low = getOption("cccharts.low"),
  mid = getOption("cccharts.mid"), high = getOption("cccharts.high"),
  insig = NULL, ybreaks = waiver(), xbreaks = waiver(),
  ylab = ylab_estimates, prefix = "")

Arguments

data

A data frame of the data to plot

x

A string of the column to plot on the x-axis.

by

A character vector of the factors to separate plots by.

facet

A string indicating the factor to facet wrap by.

nrow

A count of the number of rows when facet wrapping.

geom

A string of the geom ("point" or "bar")

width

A count of the png width in pixels.

height

A count of the png height in pixels.

ask

A flag indicating whether to ask before creating the directory

dir

A string of the directory to store the results in.

ylimits

A numeric vector of length two providing limits of the y-axis scale.

climits

A character vector of length two providing limits of the color scale.

low

A string specifying the color for negative values.

mid

A string specifying the color for no change.

high

A string specifying the color for positive values.

insig

A string specifying the color for insignificant estimates.

ybreaks

A numeric vector of y-axis tick mark positions.

xbreaks

A numeric vector of x-axis tick mark positions.

ylab

A function that takes the data and returns a string for the y-axis label.

prefix

A string specifying the prefix for file names.


bcgov/cccharts documentation built on Dec. 21, 2020, 2:21 p.m.