Skip to contents

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

if (FALSE) { # \dontrun{
df_td <- td_get("LTN", 2020, 2022)
plot_td_series(df_td, type = "price")
} # }