medley: Sprinkle Medleys

Description Usage Arguments Author(s) Examples

Description

pixiedust can get to be pretty verbose if you are doing a great deal of customization. Sprinkle medleys can take out some of that code by bundling much of the formatting sprinkling into a single function.

pixiedust comes with a couple very basic medleys that are mostly for illustration of how to write medleys. Once you get the hang of sprinkling, you need only bundle your most common sprinkles into a medley function of your own and cut down on some of the time coding your most basic formatting.

Usage

1
2
3

Arguments

x

a dust object.

round

A numerical value passed to the round sprinkle.

Author(s)

Benjamin Nutter

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
fit <- lm(mpg ~ qsec + factor(am) + wt * factor(gear), data = mtcars)

dust(fit) %>%
  medley_bw() %>%
  sprinkle_print_method("html")
  
dust(fit, glance_foot = TRUE) %>%
  medley_model() %>%
  sprinkle_print_method("html")
  
# Medleys are not generics and do not have methods.
# Using a medley on a dust_list object requires pixieply

library(dplyr)
mtcars %>% 
  group_by(gear) %>% 
  dust(ungroup = FALSE) %>% 
  pixieply(medley_bw) %>% 
  sprinkle_print_method("html")

## End(Not run)

pixiedust documentation built on May 11, 2018, 5:06 p.m.