This function generates heatmaps from metadata, either from an existing object or from a CSV file.
Usage
plot_metadata_heatmap(
metadata = NULL,
metadata_file = NULL,
legend = TRUE,
output_file = NULL,
plate = NULL
)
Arguments
- metadata
Metadata object of the class data frame, matrix or tibble.
- metadata_file
Path to the metadata CSV file path.
- legend
A character value ("show" or "none") to control whether to display legends.
- output_file
A file path and name to save the heatmaps as a graph (png, pdf, or jpg).
- plate
Plate to be plotted. Default is first plate.
Examples
#Example
metadata_file_path <- system.file("extdata", "PMMSq033_metadata.csv", package = "macpie")
metadata<-read_metadata(metadata_file_path)
plot_metadata_heatmap(metadata=metadata)