New to Shiny: GVis Sankey Not Rendering

103 views
Skip to first unread message

Vaughn Shirey

unread,
Jun 22, 2016, 2:27:56 PM6/22/16
to Shiny - Web Framework for R
Hi all,

Today I decided to delve into Shiny to create more interactive Sankey diagrams for a research project that I am working on. I've created my ui.R and server.R files and I am using a raw data file to test the rendering of my Sankey diagram before integrating reactive features. I have the following in server.R:

output$view <- renderGvis({gvisSankey(dat, from="source", to="destination", weight="weight")} )

And in ui.R:

mainPanel(htmlOutput('view'))

However, when I load the app there is no diagram, and when I view the source code within my browser I have a div where the Sankey should be, but with no content. 

Any help would be appreciated, I have seen other posts here about success with gVis and Sankey but no example code.

Joe Cheng

unread,
Jun 22, 2016, 3:00:36 PM6/22/16
to Vaughn Shirey, Shiny - Web Framework for R
There should be a gvisOutput function, you would use that and not htmlOutput.

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/586ec995-2d53-4a35-81c5-5dcf4a634db5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

TK

unread,
Jun 11, 2020, 10:50:27 AM6/11/20
to Shiny - Web Framework for R
I realize this is years old but I don't believe there is a gvisOutput function but rather one is supposed to use htmlOutput


On Wednesday, June 22, 2016 at 3:00:36 PM UTC-4, Joe Cheng [RStudio] wrote:
There should be a gvisOutput function, you would use that and not htmlOutput.

On Wed, Jun 22, 2016 at 11:27 AM Vaughn Shirey <vmsh...@gmail.com> wrote:
Hi all,

Today I decided to delve into Shiny to create more interactive Sankey diagrams for a research project that I am working on. I've created my ui.R and server.R files and I am using a raw data file to test the rendering of my Sankey diagram before integrating reactive features. I have the following in server.R:

output$view <- renderGvis({gvisSankey(dat, from="source", to="destination", weight="weight")} )

And in ui.R:

mainPanel(htmlOutput('view'))

However, when I load the app there is no diagram, and when I view the source code within my browser I have a div where the Sankey should be, but with no content. 

Any help would be appreciated, I have seen other posts here about success with gVis and Sankey but no example code.

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages