R/plot_nwc.R

Defines functions plot_nwc

plot_nwc <- function(data) {
  
  data %>% 
    select(year, total_operating_income, net_working_capital, nwc_to_revenues) %>% 
    tidyr::pivot_longer(-year) %>% 
    ggplot(aes(x = year, y = value)) +
    geom_line() +
    geom_smooth(se = FALSE) +
    # scale_y_continuous(labels = unit_format(unit = "M", scale = 1e-6)) +
    facet_grid(name ~ ., scales = "free")
  
}
olaoritsland/finmod documentation built on Dec. 22, 2021, 4:18 a.m.