Description Usage Arguments Value Examples
Bar 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 |
color |
Color of the bars. This value can be a hex color, color name, or the column name from the dataframe |
border |
Color of the border of the bars |
opacity |
transparency level |
transition_duration |
Duration for the bars to transtion |
An HTML widget that displays a bar plot made with D3.js
1 2 | # not run:
# d3_bar(mtcars, am)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.