plot_td_series: Plot Tesouro Direto Time Series Data

View source: R/plots.R

plot_td_seriesR Documentation

Plot Tesouro Direto Time Series Data

Description

Plots price or yield time series trajectories for Tesouro Direto assets downloaded using td_get.

Usage

plot_td_series(df_td, type = c("price", "yield"))

Arguments

df_td

A data frame or tibble returned by td_get.

type

Character string indicating what to plot: "price" (price_bid) or "yield" (yield_bid). Defaults to "price".

Value

A ggplot object.

Examples

## Not run: 
df_td <- td_get("LTN", 2020, 2022)
plot_td_series(df_td, type = "price")

## End(Not run)

GetTDData documentation built on Aug. 29, 2026, 5:07 p.m.