analyze_bills | R Documentation |
Analyzes and visualizes bill statistics from the Legislative Yuan, including bill counts by term, percentages, and trends. Creates a visualization and provides summary statistics.
analyze_bills(stats)
stats |
A list containing Legislative Yuan statistics with the following structure:
|
A list containing:
A ggplot object showing bill count trends
A data frame with bill statistics including:
Term number
Bill count
Percentage of total
Cumulative count
## Not run:
stats <- get_ly_stat()
bill_analysis <- analyze_bills(stats)
# View the plot
print(bill_analysis$plot)
# View the summary statistics
print(bill_analysis$summary)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.