Learn R Programming

brfinance (version 0.2.2)

plot_selic_rate: Plot Brazilian SELIC rate (annualized, base 252)

Description

Generates a time series plot of the SELIC interest rate using data from get_selic(). The SELIC rate ("Sistema Especial de Liquidação e de Custódia") represents the effective annualized rate (252-business-day basis) for overnight interbank loans and is the main instrument of Brazil’s monetary policy.

Usage

plot_selic_rate(data, language = "eng")

Value

A ggplot2 object showing the SELIC rate over time.

Arguments

data

Tibble returned by get_selic_rate()

language

Language for titles and labels: "pt" (Portuguese) or "eng" (English).

Examples

Run this code
if (FALSE) {
# Example 1: English version
selic_data <- get_selic_rate(2020, 2024)
selic_plot <- plot_selic_rate(selic_data)
print(selic_plot)

# Example 2: Portuguese version
dados_selic <- get_selic_rate(2020, 2024, language = "pt")
grafico_selic <- plot_selic_rate(dados_selic, language = "pt")
print(grafico_selic)
}

Run the code above in your browser using DataLab