chart_settings: Adjust chart settings

Description Usage Arguments Value Examples

View source: R/d3rain.R

Description

Adjust chart settings

Usage

1
2
3
chart_settings(d3rain, toolTipTextColor = "white",
  backgroundFill = "white", fontSize = 18, fontFamily = "sans-serif",
  yAxisTickLocation = "center")

Arguments

d3rain

An object of class d3rain

toolTipTextColor

Color of tooltip text

backgroundFill

Background color of SVG

fontSize

Font size

fontFamily

Font family, e.g. 'times', 'sans-serif'

yAxisTickLocation

Location of y-axis ticks, either 'center', 'left', or 'right'

Value

d3rain

Examples

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

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