+ QuadPlot()
Opened this issue · 3 comments
Update existing QuadPlot
with documentation and examples, plus into index.Rmd and/or vignette to demonstrate use. Here's an example from the Ecosystem Status Report of the California Current for 2019–20:
Check that it works, ideally with smart, flexible arguments as described in dplyr programming with non-standard evaluation, eg unquoted column names as arguments, as done in plot_ts()
).
For this newer, smarter function, I'd prefer a lowercase name like quadplot()
, which should help differentiate from the old one.
Was able to regenerate QuadPlot_means()
by running Report_and Appendix_Figures.Rmd#L10-L118:
Not sure where the color coding comes from our how to interpret these values:
QuadPlot_means(D1 = x, D2 = y, style=1, Title = "(c) Sample quadplot", bg.polys=bg.polys, PlotLegend = NA, Lmar = 4.5)
> x
[1] 1.3 1.1 0.5 -1.5 -0.6
> y
[1] 2.1 -0.9 -1.5 1.4 0.5
Ah because of default argument for Quadplot_means():
bg.color=c('black','white','grey','red','blue')
Caption: Figure 3. c) Sample quad plot where each point represents one normalized time series. The position of a point indicates if the recent trend was increasing or decreasing over the evaluation period and whether the recent mean over the evaluation period was above or below the long-term mean. Dashed lines represent ±1.0 SD of the full time series.