e61-Institute / theme61

Create graphs in the e61 Institute style
https://e61-institute.github.io/theme61/
MIT License
5 stars 0 forks source link

Line graph scale issue #83

Closed aaronw22 closed 1 year ago

aaronw22 commented 1 year ago

scale issue

Should run c(2, 4.5, 0.5) rather than 0-5.

aaronw22 commented 1 year ago

Furthermore, when you manually specify scales then the label does not position itself as nicely.

Also possibly too much whitespace at the top and bottom?

qld oo vs invest turnover

aaronw22 commented 1 year ago

Ooo this didn't work at all.

ggplot(diff_w_se_coef[month > "2010-01-01" & month < "2013-01-01"], 
       aes(x = month)) +
  geom_line(aes(y = estimate)) +
  geom_ribbon(aes(ymin = ci_l, ymax = ci_h), alpha = 0.2) +
  annotate(geom = "rect",
           xmin = as.Date("2011-08-01"), xmax = as.Date("2012-07-01"),
           ymin = -3, ymax = 1,
           fill = "red", alpha = 0.1) +
  add_baseline() +
  # scale_y_continuous_e61(limits = c(-3, 1, 1)) +
  labs_e61(
    title = "Difference in Number of Property Transactions*", 
    subtitle = "Investors less owner-occupiers, monthly**",
    footnotes = c("Red shaded area indicates the time period during which Queensland removed the owner-occupier stamp duty concession.", "Shaded bands indicate 95 per cent confidence intervals."),
    sources = c("PropTrack", "e61 Institute"),
    x = NULL, y = "'000")
  # theme_e61()

save_e61("output/diff in oo and investor sales with se.svg")

diff in oo and investor sales with se

JackBuckley commented 1 year ago

These should now both be solved on the latest version of dev.