Guest User

Untitled

a guest
Oct 16th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. fun_labels <- function(x) sprintf("<b>%s</b>", x)
  2.  
  3. ggplot() +
  4. scale_x(breaks = c('a','b','c')) +
  5. theme(axis.label = element_sticker(grob = fancyGrob, dictionary = fun_labels))
  6.  
  7. my_labels <- tibble(label = letters[1:3], grobs = I(lapply(1:3, fancyGrob)))
  8.  
  9. ggplot() +
  10. scale_x(breaks = c('a','b','c'),
  11. formatter = format_fancytext(type='html'),
  12. dictionary = my_labels)
Add Comment
Please, Sign In to add comment