d3plot: Create a new D3 plot

View source: R/d3plot.R

d3plotR Documentation

Create a new D3 plot

Description

d3plot initializes a d3plot object. It can be used to declare input data frame for a D3 plot and specify various aesthetics as optional input arguments.

Usage

d3plot(x, y, data = NULL, ...)

Arguments

x

the x-axis (independent) variable

y

the y-axis (dependent) variable

data

the dataset containing the variables

...

additional, optional arguments

Details

d3plot is used to construct D3 plots. They can be incrementally created using the forward-pipe operator from the magrittr package or without this operator. It is strongly recommended to use the forward-pipe operator.

See Also

d3_line, d3_point

Examples

## Not run: 
d3plot(x = mpg, y = cyl, data = mtcars) %>% d3_point()

## End(Not run)

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