Guest User

Untitled

a guest
Nov 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. economics_mod <- economics_long %>%
  2. mutate(type = variable) %>%
  3. mutate(type = recode(type, `pce` = "1", `pop` = "1", .default = "2"))
  4.  
  5. ggplot(economics_mod, aes(date, value01, group = variable)) +
  6. geom_path() +
  7. facet_wrap( ~ type, ncol = 1) +
  8. geom_smooth()
Add Comment
Please, Sign In to add comment