We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to embed a html figure into xaringan presentation:
xaringan
library(plotly) p <- plot_ly(z = volcano, type = "heatmap") p
Save the figure:
htmlwidgets::saveWidget(p, paste0("p.html"))
htmltools::knit_print.html("p.html")
Not even this:
htmltools::knit_print.shiny.tag("p.html")
The text was updated successfully, but these errors were encountered:
The saved htmlwidget is a complete html file with its own , sections etc, while print(p) will produce a
If you feel like to save the plot, save it as a normal R object using:
save(p, file ="p.rda")
and load & redraw it later, using
library(plotly) load("p.rda") p
Sorry, something went wrong.
After trying a lot of options, I wonder if there is any option for it yet.
Found a way: rstudio/htmltools#90
No branches or pull requests
I am trying to embed a html figure into
xaringan
presentation:Save the figure:
Not even this:
The text was updated successfully, but these errors were encountered: