style: Modify trace(s)

Description Usage Arguments Author(s) See Also Examples

Description

Modify trace(s) of an existing plotly visualization. Useful when used in conjunction with get_figure().

Usage

1
style(p, ..., traces = 1)

Arguments

p

A plotly visualization.

...

Visual properties.

traces

numeric vector. Which traces should be modified?

Author(s)

Carson Sievert

See Also

get_figure()

Examples

1
2
3
p <- qplot(data = mtcars, wt, mpg, geom = c("point", "smooth"))
# keep the hover info for points, but remove it for the line/ribbon
style(p, hoverinfo = "none", traces = c(2, 3))

gvarunkumar/plotly documentation built on May 17, 2019, 9:29 a.m.