Description Usage Arguments Value Examples
Scatter plot made with D3
1 2 3 |
data |
A Dataset to use for plotting. Should be a dataframe |
x_var |
Attribute to place on the x axis |
y_var |
Attribute for the y axis. If *y_var* is not specified or NULL, the *x_var* will be counted |
title |
Title for the plot, placed above plot |
x_lab |
X axis label. Default is *x_var's* object name |
y_lab |
Y axis label. Default is *y_var's* ovject name |
point_size |
Size of the data points on the plot |
color |
Color of the points. This value can be a hex color, color name, or the column name from the dataframe |
stroke_width |
Border thickness for each data point |
opacity |
transparency level |
transition_duration |
Duration for the points to transtion |
An HTML widget that displays a scatter plot made with D3.js
1 2 | # not run:
# d3_scatter(mtcars, mpg, hp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.