d3_scatter: Scatter plot made with D3

Description Usage Arguments Value Examples

Description

Scatter plot made with D3

Usage

1
2
3
d3_scatter(data, x_var, y_var, title = NULL, x_lab = NULL,
  y_lab = NULL, point_size = 3, color = "black", stroke_width = 1,
  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

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

Value

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

Examples

1
2
# not run:
# d3_scatter(mtcars, mpg, hp)

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