nutterb / pixiedust

Tables So Beautifully Fine-Tuned You Will Believe It's Magic.
178 stars 18 forks source link

Default Sprinkle Set? #79

Closed ckraner closed 7 years ago

ckraner commented 7 years ago

I'm very sorry if this is somewhere, but I thought I read you can make a default set of sprinkles? If not....this would be very very helpful.

nutterb commented 7 years ago

You are correct that this isn't given much discussion in the documentation. It seems you may have already found your solution, but just in case, they medleys are really only a function. For example, if I always want pad = 3 and striped rows, I can define

some_medley <- function(x){
  x %>%
    sprinkle(pad = 3,
                  bg_pattern_by = "rows")
}

These can run as complex or simplistic as needed.

I will be adding more long form documentation about pixiedust which will have a chapter devoted to medleys. It's still under development, and I haven't yet written that chapter. (http://nutterb.github.io/pixiedust/index.html)