Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r1 <- c('John Doe','Peter Gynn','Jolie Hope')
- r2 <- c(21000, 23400, 26800)
- color <- c('#f0f0f5','#00a1cd','#0058b8')
- df <- data.frame(r1,r2, color)
- hc <- highchart() %>%
- hc_xAxis(categories = df$r1) %>%
- hc_add_series(data = df$r2, type = "bar")
- hc
Add Comment
Please, Sign In to add comment