@@ -90,24 +90,29 @@ rangeslider <- function(p, start = NULL, end = NULL, ...) {
9090# ' \url{https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js}
9191# ' @param collaborate include the collaborate mode bar button (unique to the R pkg)?
9292# ' @param cloud include the send data to cloud button?
93- # ' @param locale locale to use. See [here](https://github.com/plotly/plotly.js/tree/master/dist#to-include-localization) for more info
93+ # ' @param locale locale to use. See [here](https://github.com/plotly/plotly.js/tree/master/dist#to-include-localization) for more info.
9494# ' @author Carson Sievert
9595# ' @export
9696# ' @examples
9797# '
98- # ' p <- plot_ly(x = rnorm(1000))
98+ # ' today <- Sys.Date()
99+ # ' x <- seq.Date(today, today + 360, by = "day")
100+ # ' p <- plot_ly(x = x, y = rnorm(length(x))) %>%
101+ # ' add_lines()
99102# '
100103# ' # remove the plotly logo and collaborate button from modebar
101104# ' config(p, displaylogo = FALSE, collaborate = FALSE)
102105# '
106+ # ' #' # japanese
107+ # ' config(p, locale = "ja")
108+ # ' #' # german
109+ # ' config(p, locale = "de")
110+ # ' # swiss-german
111+ # ' config(p, locale = "de-CH")
103112# ' # spanish
104113# ' config(p, locale = "es")
105- # ' # german
106- # ' config(p, locale = "de")
107114# ' # french
108115# ' config(p, locale = "fr")
109- # ' # japanese
110- # ' config(p, locale = "ja")
111116# '
112117
113118config <- function (p , ... , collaborate = TRUE , cloud = FALSE , locale = NULL ) {
0 commit comments