Skip to content

Commit 9d3c414

Browse files
committed
fix example
1 parent 740ee6c commit 9d3c414

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/layout.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ rangeslider <- function(p, start = NULL, end = NULL, ...) {
113113
#' # enable mathjax
114114
#' # see more examples at https://plot.ly/r/LaTeX/
115115
#' plot_ly(x = c(1, 2, 3, 4), y = c(1, 4, 9, 16)) %>%
116-
#' layout(title = "$\\text{Some mathjax: }\\alpha+\\beta x$") %>%
117-
#' config(mathjax = TRUE)
116+
#' layout(title = TeX("\\text{Some mathjax: }\\alpha+\\beta x")) %>%
117+
#' config(mathjax = "cdn")
118118
#'
119119
#' # japanese
120120
#' config(p, locale = "ja")

man/config.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)