Skip to content

Instantly share code, notes, and snippets.

@maurolepore
Last active October 8, 2021 15:16
Show Gist options
  • Save maurolepore/f9fd926869ecb100273f2abddd4a1d18 to your computer and use it in GitHub Desktop.
Save maurolepore/f9fd926869ecb100273f2abddd4a1d18 to your computer and use it in GitHub Desktop.

Here: https://git.io/JrwgD

--

This code

reprex::reprex({
  library(dplyr, warn.conflicts = FALSE)
  library(r2dii.plot)
  
  data <- market_share %>%
    filter(
      sector == "power",
      technology == "renewablescap",
      region == "global",
      scenario_source == "demo_2020",
      between(year, 2020, 2030)
    )
  
  plot_trajectory(data)
})

yields this reprex:

library(dplyr, warn.conflicts = FALSE)
library(r2dii.plot)

data <- market_share %>%
  filter(
    sector == "power",
    technology == "renewablescap",
    region == "global",
    scenario_source == "demo_2020",
    between(year, 2020, 2030)
  )

plot_trajectory(data)
#> Normalizing `production` values to 2020 -- the start year.

Created on 2021-10-08 by the reprex package (v2.0.1)

--

Thanks @MonikaFu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment