flir_stats_group: Statistics from 'stats_by_group'

flir_stats_groupR Documentation

Statistics from stats_by_group

Description

Results of running stats_by_group for FLIR photos included in the package installation, which can be located by: list.files(system.file("extdata/", package = "ThermStats"), full.names = TRUE).

Usage

flir_stats_group

Format

A list consisting of:

  • df = A dataframe with one row for each pixel, and variables denoting: the pixel value (val); the original spatial location of the pixel (x and y); its patch classification (G_bin) into a hot (1), cold (-1) or no patch (0) according to the Z value (see spdep::localG); the unique ID of the patch in which the pixel fell; and the matrix ID (if applicable).

  • patches = A list of SpatialPolygonsDataFrames of hot and cold patches, named according to grouping_var. Hot patches have a value of 1, and cold patches a value of -1.

  • pstats = A dataframe with patch statistics for hot patches and cold patches, respectively. See patch_stats for details of all the statistics returned.

Details

This data is primarily included to speed up build time of the package vignette (see browseVignettes("ThermStats")). You can reproduce flir_stats_group by following the code in the vignette.

Examples

head(flir_stats_group$df)
flir_stats_group$pstats
plot_patches(df = flir_stats_group$df,
             patches = flir_stats_group$patches, 
             save_plot = FALSE, 
             print_plot = TRUE,
             plot_distribution = FALSE)

rasenior/ThermStats documentation built on Nov. 16, 2024, 5:34 p.m.