StatisticsNZ / simplevis

Simple visualisation with ggplot2 and leaflet wrappers
https://StatisticsNZ.github.io/simplevis
Other
86 stars 11 forks source link

col_legend_none: not working when mobile = TRUE #419

Closed davidhodge931 closed 2 years ago

davidhodge931 commented 2 years ago
library(palmerpenguins)
library(dplyr)
library(simplevis)

plot_data <- penguins %>% 
  group_by(species) %>% 
  summarise(body_mass_g = mean(body_mass_g, na.rm = TRUE))  

gg_bar_col(plot_data, 
           x_var = species, 
           y_var = body_mass_g, 
           col_var = species, 
           col_legend_none = TRUE,
           mobile = T)