d3plot | R Documentation |
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.
d3plot(x, y, data = NULL, ...)
x |
the x-axis (independent) variable |
y |
the y-axis (dependent) variable |
data |
the dataset containing the variables |
... |
additional, optional arguments |
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.
d3_line
, d3_point
## Not run: d3plot(x = mpg, y = cyl, data = mtcars) %>% d3_point() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.