Plot Ratios Summary for Indicator Ratios Summary Object
Source:R/plot.ratios_summary.R
plot.cd_ratios_summary.RdThis function generates a bar plot for a cd_ratios_summary object,
displaying the calculated indicator ratios for each year. It allows
for visual comparison across years, showing how each indicator ratio
changes over time.
Usage
# S3 method for class 'cd_ratios_summary'
plot(x, ...)Details
This function provides a visual summary of indicator ratios, with each ratio displayed
as a bar for each year. The Expected Ratio row is included if available, allowing
for easy comparison of actual ratios against expected values. The bars are grouped
by year, with distinct colors representing each year for clear differentiation.
Examples
if (FALSE) { # \dontrun{
# Assuming `cd_ratios_summary` is the object returned by `calculate_ratios_summary`
plot(cd_ratios_summary)
} # }