njtierney / naniar

Tidy data structures, summaries, and visualisations for missing data
http://naniar.njtierney.com/
Other
649 stars 54 forks source link

Cannot modify ggplot theme for `gg_miss_upset`. #315

Open siavash-babaei opened 1 year ago

siavash-babaei commented 1 year ago

Cannot modify ggplot theme for gg_miss_upset. Is it not a proper ggplot2 object?!

library(naniar)

data(oceanbuoys)

oceanbuoys |> 
  naniar::gg_miss_upset(order.by = "freq") +
  ggplot2::theme_bw()
#> NULL
njtierney commented 1 year ago

Hi there,

Alas it is a custom implementation by upsetR - https://rdrr.io/cran/UpSetR/man/upset.html - I will make a note of this in the next release to update the documentation to note this.

njtierney commented 1 year ago

another option could be to use something like https://github.com/const-ae/ggupset instead - or document how to use both approaches, UpSetR and ggupset