examples/legend.R

library(topogram)

topogram(world, value = "pop_est") %>% 
  topogram_legend(title = "Population")

topogram(world, value = "pop_est", palette = "Blues") %>% 
  topogram_legend(
    title = NULL,
    formatter = scales::label_comma(),
    direction = "v"
  )
dreamRs/topogRam documentation built on Dec. 16, 2021, 6:47 p.m.