powered by
Modify trace(s) of an existing plotly visualization. Useful when used in conjunction with get_figure().
get_figure()
style(p, ..., traces = NULL)
A plotly visualization.
Visual properties.
numeric vector. Which traces should be modified? By default, attributes place in ... will be applied to every trace.
...
api_download_plot()
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab