Add titles to plots
This commit is contained in:
@@ -368,15 +368,16 @@ generate_and_save_plots <- function(df, output_dir, file_prefix, variables, plot
|
|||||||
|
|
||||||
# Include additional QC plots if requested
|
# Include additional QC plots if requested
|
||||||
if (include_qc) {
|
if (include_qc) {
|
||||||
plots[["Raw_L_vs_K"]] <- generate_plot(df, "L", "K", "scatter", "Raw L vs K before QC")
|
plots[["Raw_L_vs_K"]] <- generate_plot(df, "L", "K", "scatter", title = "Raw L vs K before QC")
|
||||||
plots[["Delta_bg_Density"]] <- generate_plot(df, "delta_bg", NULL, "density", "Density plot for Delta Background")
|
plots[["Delta_bg_Density"]] <- generate_plot(df, "delta_bg", NULL, "density", title = "Density plot for Delta Background")
|
||||||
plots[["Delta_bg_Bar"]] <- generate_plot(df, "delta_bg", NULL, "bar", "Bar plot for Delta Background")
|
plots[["Delta_bg_Bar"]] <- generate_plot(df, "delta_bg", NULL, "bar", title = "Bar plot for Delta Background")
|
||||||
}
|
}
|
||||||
|
|
||||||
save_plots(file_prefix, plots, output_dir)
|
save_plots(file_prefix, plots, output_dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Ensure all plots are saved and printed to PDF
|
# Ensure all plots are saved and printed to PDF
|
||||||
save_plots <- function(file_name, plot_list, output_dir) {
|
save_plots <- function(file_name, plot_list, output_dir) {
|
||||||
# Save to PDF
|
# Save to PDF
|
||||||
|
|||||||
Reference in New Issue
Block a user