Description Usage Arguments Value Examples
View source: R/plot-estimates.R
Plots trend estimates with uncertainty if available.
1 2 3 4 5 |
data |
A data frame of the data to plot |
x |
A string of the column to plot on the x-axis. |
facet |
A string indicating the factor to facet wrap by. |
nrow |
A count of the number of rows when facet wrapping. |
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. |
geom |
A string of the geom ("point" or "bar") |
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. |
A ggplot2 object.
1 2 | plot_estimates(cccharts::precipitation, x = "Season",
facet = "Ecoprovince", nrow = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.