# Preview RGB
<- reflectance |>
p_rgb # Plot
1plot_raster_rgb(
2calibration = pixel_to_distance(hsi_tools_core)
)
# Print
p_rgb
- 1
- Function to plot RGB.
- 2
- Call to HSItools core output of the Shiny app storing the depth calibration.
Preview RGB with the scale. In all of the following functions, you can call the extent
argument.
# Preview RGB
<- reflectance |>
p_rgb # Plot
1plot_raster_rgb(
2calibration = pixel_to_distance(hsi_tools_core)
)
# Print
p_rgb
For example, we can plot the spatial map of RABD660:670max.
# Plot RABD
<- rabd_max |>
p_rabd 1plot_raster_proxy(
2hsi_index = names(rabd),
3calibration = pixel_to_distance(hsi_tools_core),
4palette = "viridis",
)
# Print
p_rabd
We can extract profile of the selected index using one of the predefined ROIs. We use the small, green ROI in the middle.
# Plot series
<- rabd |>
p_rabd_series # Plot
1::plot_profile_spectral_series(
HSItools2hsi_index = names(rabd),
3calibration = pixel_to_distance(hsi_tools_core),
# Print
p_rabd_series
We can display it side by side using the magic of {patchwork}.
# Plot using {patchwork}
+ p_rabd + p_rabd_series p_rgb
Finally, you might be interested in plotting the average spectrum from the selected area. We’ll use the uppermost “sample” from the ROI preview.
# Plot reflectance profile
<- reflectance |>
p_sample 1plot_profile_spectral_profile()
# Print
p_sample