Set the default configuration for plotly
Set the default configuration for plotly
config( p, ..., cloud = FALSE, showSendToCloud = cloud, locale = NULL, mathjax = NULL )
p |
a plotly object |
... |
these arguments are documented at https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js |
cloud |
deprecated. Use |
showSendToCloud |
include the send data to cloud button? |
locale |
locale to use. See here for more info. |
mathjax |
add MathJax rendering support.
If |
Carson Sievert
# remove the plotly logo and collaborate button from modebar config(plot_ly(), displaylogo = FALSE, collaborate = FALSE) # enable mathjax # see more examples at https://plotly.com/r/LaTeX/ plot_ly(x = c(1, 2, 3, 4), y = c(1, 4, 9, 16)) %>% layout(title = TeX("\\text{Some mathjax: }\\alpha+\\beta x")) %>% config(mathjax = "cdn") # change the language used to render date axes and on-graph text # (e.g., modebar buttons) today <- Sys.Date() x <- seq.Date(today, today + 360, by = "day") p <- plot_ly(x = x, y = rnorm(length(x))) %>% add_lines() # japanese config(p, locale = "ja") # german config(p, locale = "de") # spanish config(p, locale = "es") # chinese config(p, locale = "zh-CN")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.