Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trajectory chart x-axis displays fractions of years #403

Closed
MonikaFu opened this issue Oct 8, 2021 · 0 comments · Fixed by #419
Closed

Trajectory chart x-axis displays fractions of years #403

MonikaFu opened this issue Oct 8, 2021 · 0 comments · Fixed by #419
Labels
bug an unexpected problem or unintended behavior

Comments

@MonikaFu
Copy link
Collaborator

MonikaFu commented Oct 8, 2021

For certain ranges of years the trajectory charts display dates such as 2021.5 (see reprex below).

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

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.0)

Desired behavior: only integers are shown on x-axis.

@MonikaFu MonikaFu added the bug an unexpected problem or unintended behavior label Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant