You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You _could_ print this this **plotly** graph with SVG-based rendering, but it would break the HTML-based rendering of **rmarkdown**!
11
+
12
+
```{r message = FALSE}
13
+
library(plotly)
14
+
15
+
p <- plotly_empty() %>%
16
+
add_trace(x = 1, y = 1, text = "$\\alpha$", mode = "text", size = I(1000)) %>%
17
+
config(mathjax = "cdn")
18
+
```
19
+
20
+
Instead, use something like the **widgetframe** package to create a responsive iframe. This ensures the SVG-based rendering that plotly requires is done in isolation (i.e., independent of **rmarkdown**'s HTML-based rendering).
21
+
22
+
```{r}
23
+
widgetframe::frameableWidget(p)
24
+
```
25
+
26
+
Or, do it the old-fashioned way by saving your plotly graph to an HTML file and use an HTML `<iframe>` to
0 commit comments