plot_exchange_rate: Plot Brazilian exchange rate (USD/BRL)

View source: R/plot_series.R

plot_exchange_rateR Documentation

Plot Brazilian exchange rate (USD/BRL)

Description

Generates a time series plot of the USD/BRL exchange rate using data from get_exchange_rate().

Usage

plot_exchange_rate(data, language = "eng")

Arguments

data

Tibble returned by get_exchange_rate().

language

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

Value

A ggplot2 object showing the exchange rate over time, or NULL (with a message) if data has no rows.

Examples


exchange_data <- get_exchange_rate("2023-01-01", "2023-12-31")
print(plot_exchange_rate(exchange_data))



brfinance documentation built on Nov. 14, 2026, 5:09 p.m.