This function plots the spectral matrix as a heatmap using the specified color palette, and saves it as a JPEG file.
spectral.heatmap(
spectra,
title = NULL,
plot.dir = NULL,
legend.label = "Intensity",
color.palette = "viridis",
save = TRUE,
show.legend = TRUE
)Matrix or dataframe containing spectral data format: fluorophores x detectors.
Optional prefix for the plot filename.
Optional output directory. Default is NULL, in which case the spectra figure folder will be used.
Character string that will appear on the heatmap legend.
Optional character string defining the viridis color
palette to be used for the fluorophore traces. Default is viridis. Options
are the viridis color options: magma, inferno, plasma, viridis,
cividis, rocket, mako and turbo.
Logical, if TRUE, saves a JPEG file to the plot.dir.
Otherwise, the plot will simply be created in the Viewer.
Logical. If TRUE, figure legend will be included.
Saves the heatmap plot as a JPEG file in the specified directory.