drip_settings: Adjust drip style and behavior

Description Usage Arguments Examples

View source: R/d3rain.R

Description

Adjust drip style and behavior

Usage

1
2
3
drip_settings(d3rain, dripFill = "firebrick", dripOpacity = 0.5,
  dripSequence = "iterate", dripSize = 4, ease = "bounce",
  dripSpeed = 1500, iterationSpeedX = 100, jitterWidth = 0)

Arguments

d3rain

An object of class d3rain

dripFill

Color of drips

dripOpacity

Opacity of drips

dripSequence

Either 'iterate', together', or 'by_group'

dripSize

Drip radius

ease

Either 'bounce' or 'linear'

dripSpeed

Drip speed in milliseconds

iterationSpeedX

Iteration speed multiplier

jitterWidth

Jitter width in pixels along x-axis

Examples

1
2
3
4
mtcars$cyl <- factor(mtcars$cyl)
mtcars$car <- rownames(mtcars)
d3rain(mtcars, mpg, cyl, car) %>%
    drip_settings(ease = 'linear', jitterWidth = 25, dripSpeed = 500)

daranzolin/d3rain documentation built on July 15, 2019, 11:40 p.m.