d3_line: Create a new D3 line plot

View source: R/d3_line.R

d3_lineR Documentation

Create a new D3 line plot

Description

d3_line() creates a D3 line plot. It takes data either directly or passed to it from d3plot() function.

Usage

d3_line(data, ...)

Arguments

data

data in JSON format, created by d3plot() or from another source

...

additional, optional arguments

See Also

d3plot

Examples

## Not run: 
# OK
d3_point(d3plot(x = mpg, y = cyl, color = cyl, id = rownames(mtcars), data = mtcars))
# Better
d3plot(x = Sepal.Length, y = Petal.Length, color = Species, data = iris) %>% d3_line()

## End(Not run)

cddesja/D3plot documentation built on Aug. 3, 2022, 7:39 p.m.