View source: R/plot_selic_rate.R
| plot_selic_rate | R Documentation |
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.
plot_selic_rate(data, language = "eng")
data |
Tibble returned by |
language |
Language for titles and labels: "pt" (Portuguese) or "eng" (English). |
A ggplot2 object showing the SELIC rate over time.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.