analyze_trends_over_time {finna}R Documentation

Analyze Trends Over Time with Binned Years (Decades)

Description

This function analyzes how search results for a given query have trended over time, binned by decades. It plots the number of records found for each decade, allowing users to observe long-term trends.

Usage

analyze_trends_over_time(data, query = "Records Over Time")

Arguments

data

A tibble containing Finna search results with a Year column (as character or numeric).

query

A search query string (optional) to label the plot.

Value

A ggplot2 plot showing the trend of records over time.

Examples

finna_data <- search_finna("Sibelius")
trends <- analyze_trends_over_time(finna_data, "Sibelius")
print(trends)


[Package finna version 0.1.1 Index]