-
-
Save dpastoor/11217393 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("shiny") | |
library("plotly") | |
library("ggplot2") | |
shinyServer(function(input, output) { | |
output$text <- renderText({ | |
ggiris <- qplot(Petal.Width, Sepal.Length, data=iris, color=Species) | |
py <- plotly("RgraphingAPI", "ektgzomjbx") | |
res <- py$ggplotly(ggiris) | |
iframe <- paste("<iframe height=\"600\" id=\"igraph\" scrolling=\"no\" seamless=\"seamless\" src=\"", | |
res$response$url, "\" width=\"500\" frameBorder=\"0\"></iframe>", sep = "") | |
iframe | |
}) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("shiny") | |
shinyUI(pageWithSidebar( | |
headerPanel(title=HTML("TaxMap"), windowTitle="TaxMap"), | |
sidebarPanel( | |
wellPanel("plotly in shiny") | |
), | |
mainPanel( | |
htmlOutput("text") | |
) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment