d3_histogram: Bar plot made with D3

Description Usage Arguments Value Examples

Description

Bar plot made with D3

Usage

1
2
3
d3_histogram(data, x_var, title = NULL, x_lab = NULL, y_lab = NULL,
  color = "black", border = NULL, opacity = 1,
  transition_duration = 0)

Arguments

data

A Dataset to use for plotting. Should be a dataframe

x_var

Attribute to place on the x axis

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 "Frequency"

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

Value

An HTML widget that displays a bar plot made with D3.js

Examples

1
2
# not run:
# d3_histogram(mtcars, mpg)

KoderKow/B430-d3plot documentation built on May 14, 2019, 1:58 a.m.