Skip to content

plotly R conflict with htmlwidgets on shiny #1573

@dingying85

Description

@dingying85

Dear plotly developer,

Recently I encounter an issue when I putting htmlwidgets on my R shiny server code (such as using networkD3 or others like collapsibleTree), my other interactive plots implemented with plotly stop loading and disappeared on the interface.

I am wondering whether anyone else encounter this issue. I really want to incorporate the nice htmlwidgets to shiny apps.

Thanks in advance.

Brief description of the problem

plot_ly(labels = ~sex, values = ~counts,data = sex_df,textposition = 'inside') %>%
              add_pie(hole = 0.6)
forceNetwork(Links = networkData, Nodes = NodeData,
                       Source = "src", Target = "target",
                       Value = "value", NodeID = "name",Group="group",opacity = 1,fontSize=20,zoom=TRUE,linkColour = networkData$color,Nodesize="nodesize")
          

when I have both, especially when I start specify the forceNetworkOutput in the ui.R, those plot_ly plot starts to disappear on the apps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions