Learn more about Petrobras scandal and Lava Jato operation here

library(tidyverse)
library(tidyquant)
library(dygraphs)


stocks <- c("PBR")
invest <- stocks %>%
  tq_get(get = "stock.prices"
         ,from = "2003-01-01"
         ,to = today()) %>%
  select(date, close)




invest.a <- xts(invest$close, order.by = invest$date)

Reflection of Lava Jato Operation (Car Wash) and important events in Brazil on PBR stocks