Learn R Programming

brfinance (version 0.8.0)

plot_inflation_rate: Plot Brazilian Inflation Rate (IPCA)

Description

Generates a time series plot of Brazil's monthly inflation rate measured by the IPCA (Índice Nacional de Preços ao Consumidor Amplo). The IPCA is Brazil's official inflation index and is widely used for monetary policy decisions, contract indexation, and economic analysis.

Usage

plot_inflation_rate(data, language = "eng")

Value

A ggplot2 object showing the monthly inflation rate over time.

Arguments

data

Tibble returned by get_inflation_rate(), with columns date and value. The value column represents the monthly IPCA inflation rate (%).

language

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

Examples

Run this code
if (FALSE) { # interactive()
# Example 1: English version
inflation_data <- get_inflation_rate(2020, 2024)
inflation_plot <- plot_inflation_rate(inflation_data)
print(inflation_plot)

# Example 2: Portuguese version
dados_inflacao <- get_inflation_rate(2020, 2024, language = "pt")
grafico_inflacao <- plot_inflation_rate(dados_inflacao, language = "pt")
print(grafico_inflacao)
}

Run the code above in your browser using DataLab