View source: R/Module_SUB_Plots_PatternAndFit.R
plotPattern | R Documentation |
Function to plot time series pattern with minimal labels
plotPattern( yrs, vals, width = 1, color = "grey", yrs.axis = FALSE, vals.axis = FALSE, vals.lim = NULL, hgrid = FALSE, vgrid = FALSE, pch.val = 19, pch.bg = NULL )
yrs |
numeric vector of years |
vals |
numeric vector of values |
width |
line width, default is 1 |
color |
line color, default is "grey" |
yrs.axis |
if TRUE, display the year axis. default is FALSE |
vals.axis |
if true, display the value axis. default is FALSE |
vals.lim |
vector of length 2 with y-axis limits |
hgrid |
if TRUE, display horizontal grid lines. default is FALSE |
vgrid |
if TRUE, display vertical grid lines. default is FALSE |
pch.val |
numeric value for plotting character. default is 19 (solid pt) |
pch.bg |
text string with color for point fill (if pch allows, e.g. 21) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.