Skip to content

Embedding a plotly html figure #159

@dktanwar

Description

@dktanwar

I am trying to embed a html figure into xaringan presentation:

  1. This works perfectly fine
library(plotly)
p <- plot_ly(z = volcano, type = "heatmap")
p

Save the figure:

htmlwidgets::saveWidget(p, paste0("p.html"))
  1. This does not work at all"
htmltools::knit_print.html("p.html")

Not even this:

htmltools::knit_print.shiny.tag("p.html")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions