Skip to content
New issue

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

How to embed a full HTML document in Dash for R? #117

Closed
heoa opened this issue Aug 14, 2019 · 3 comments
Closed

How to embed a full HTML document in Dash for R? #117

heoa opened this issue Aug 14, 2019 · 3 comments
Assignees

Comments

@heoa
Copy link

heoa commented Aug 14, 2019

I tried to embed the HTML test.html with multiple commands such as htmlIFrame but nothing gets rendeded. What is the proper way to embed full HTML document into dashR?

library(plotly);
library(htmlwidgets);

df <- data.frame(x = 1:25, y = c(1:25 * 1:25))
gg <- ggplot(df,aes(x = x, y = y)) + geom_point()

# Save ggplotly as widget in file test.html
saveWidget(ggplotly(gg), file = "~/test.html")```
@rpkyle rpkyle changed the title How to embed a full HTML documnet to dashR? How to embed a full HTML document in Dash for R? Aug 14, 2019
@rpkyle
Copy link
Contributor

rpkyle commented Aug 14, 2019

@heoa Hopefully the reply here answered your underlying question (about how to embed ggplotly figures within a Dash for R app); if not, please let me know!

@rpkyle rpkyle self-assigned this Aug 15, 2019
@heoa
Copy link
Author

heoa commented Aug 15, 2019

@rpkyle yes thank you, it would be super useful to have a collection of minimal working examples of using ggplot with dashR. I started the below thing

#118

which we could turn into documentation later.

@rpkyle
Copy link
Contributor

rpkyle commented Aug 29, 2019

Given that my earlier reply answered your initial question, I'm going to go ahead and close this one for now.

@rpkyle rpkyle closed this as completed Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants