naniar icon indicating copy to clipboard operation
naniar copied to clipboard

Cannot modify ggplot theme for `gg_miss_upset`.

Open siavash-babaei opened this issue 1 year ago • 2 comments

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

siavash-babaei avatar Mar 16 '23 19:03 siavash-babaei

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 avatar Mar 30 '23 05:03 njtierney

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

njtierney avatar Apr 12 '23 04:04 njtierney