Guest User

Untitled

a guest
Jun 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. library(tidyverse)
  2. library(viridis)
  3.  
  4. # note: must first convert data to a dataframe
  5.  
  6. p <- ggplot(data) +
  7. geom_path(aes(lon, lat, group = id, color = elevation), alpha = 0.5) +
  8. coord_map() +
  9. theme_void() +
  10. scale_colour_viridis() +
  11. theme(legend.position="none") +
  12. theme(plot.background = element_rect(fill = "black"))
  13.  
  14. p
Add Comment
Please, Sign In to add comment