This function creates a scatter plot showing genome completeness vs contamination with optional marginal density plots to display distributions.
plot_checkm2_res(
checkm2_df,
add_marginal = TRUE,
marginal_type = "density",
point_size = 0.6,
base_size = 14,
quality_thresholds = list(high_comp = 90, high_contam = 5, med_comp = 70, med_contam =
10),
filter_data = TRUE,
min_quality_score = 50,
min_completeness = 50,
max_contamination = 10
)A ggplot object or ggExtra plot object if marginal plots are added.
Data frame. CheckM2 results containing at least columns: 'Completeness', 'Contamination', and 'Name'.
Logical. Whether to add marginal density plots using ggExtra. Default is TRUE.
Character. Type of marginal plot: "density", "histogram", "boxplot", or "violin". Default is "density".
Numeric. Size of points in scatter plot. Default is 0.6.
Numeric. Base font size for the plot. Default is 14.
List. Custom thresholds for quality classification. Default list(high_comp = 90, high_contam = 5, med_comp = 70, med_contam = 10)
Logical. Whether to filter low-quality genomes. Default is TRUE.
Numeric. Minimum quality score for filtering. Default is 50.
Numeric. Minimum completeness for filtering. Default is 50.
Numeric. Maximum contamination for filtering. Default is 10.