| char_plot | R Documentation |
Nine output figures mirroring the MATLAB CharAnalysis v2.0 plots. Function names follow R snake_case conventions.
char_plot_peaks(out)
char_plot_fire_history(out)
char_plot_cumulative(out)
char_plot_fri(out)
char_plot_zones(out)
char_plot_raw(out)
char_plot_thresh_diag(out)
char_plot_sni(out)
char_plot_all(out, save = FALSE, out_dir = NULL, width = 11, height = 8.5)
out |
Named list returned by [CharAnalysis()]. Must contain
|
save |
Logical. If |
out_dir |
Directory for saved PDFs. Required when |
width, height |
PDF dimensions in inches. Defaults: 11 x 8.5. |
Figure 1 (allFigures only): C_raw, C_interpolated, and C_background smoothing options.
Figure 2 (allFigures only): Local threshold determination diagnostics (5x5 window grid).
Figure 3: Resampled CHAR with background trend (top) and C_peak with thresholds and peak markers (bottom).
Figure 4: Sensitivity to alternative thresholds and signal-to-noise index.
Figure 5: Cumulative peaks through time.
Figure 6: FRI distributions by zone with Weibull model fits.
Figure 7: Peak magnitude (top), FRIs through time with smoothed FRI and CI ribbon (middle), and smoothed fire frequency (bottom).
Figure 8: Between-zone comparisons of raw CHAR distributions (CDF and box plots).
Convenience wrapper: produces all figures and optionally saves them as PDF files.
Requires the ggplot2 package. Multi-panel layout uses patchwork if available; otherwise panels are printed separately with a message.
Individual figure functions each return a patchwork / ggplot2
object. char_plot_all() returns a named list of all figure objects.
[CharAnalysis()], [char_post_process()]
# Run pipeline on the bundled example dataset, then plot:
params_file <- system.file("validation", "CO_charParams.csv",
package = "CharAnalysis")
out <- CharAnalysis(params_file)
char_plot_peaks(out)
char_plot_fire_history(out)
# Individual figures can also be called directly:
char_plot_sni(out)
char_plot_fri(out)
# Save all figures to PDF in a temporary directory:
char_plot_all(out, save = TRUE, out_dir = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.