R/gghorizontal_bar.R

Defines functions gghorizontal_bar

gghorizontal_bar <- function(df, x = NULL, y = NULL){
  ggplot(., aes(x = reorder(web_of_science_categories, n), y = n)) +
    geom_bar(stat = 'identity') +
    coord_flip()
}
poldham/oldhammisc documentation built on May 25, 2019, 11:23 a.m.