-
Notifications
You must be signed in to change notification settings - Fork 12
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
Circle plot can be created in R console, but it does not show up in Shiny app. #12
Comments
Can you make the above example reproducible? E.g. use a toy dataset. To check, this doesn't work for you? library(igraph)
ws_graph = watts.strogatz.game(1, 50, 4, 0.05)
shinyedge(ws_graph) |
Hi. Thanks for reply. |
Could you share a reproducible example, using a toy data set (instead of values$spp) and use the library(edgebundleR)
library(shiny)
server <- function(input, output) {
output$circplot <- renderUI({
##
})
output$eb <- renderEdgebundle({
##
})
}
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
##
),
mainPanel(
##
)
)
)
shinyApp(ui = ui, server = server) |
guessing |
Hi. Thanks for the replies. I added another tabPanel (6th tabpanel), plotting another graph. After that, I noticed that the circleplot in the 5th TabPanel rendered (the graph was presented), but the plot in 6th panel did not show up. Therefore, I do not think the issue is caused by "edgebundleR" package. |
Hi.
I am able to create circle plots in R console, but for some unknown reason, I am not able to present the circle plot in my Rshiny app. I even tried to reproduce the "shinyedge" function in my app, but the plot does not show up. The app does not through any error, it just does not show the plot.
here is a piece of my code:
UI side:
tabPanel(title="CirclePlot",value="CP",
fluidRow(
column(3,
sliderInput("tension", "Tension", 0.3,min=0,max=1,step = 0.01),
sliderInput("fontsize","Font size",12,min=6,max=24),
sliderInput("width","Width and height",600,min=200,max=1200),
sliderInput("padding","Padding",100,min=0,max=300),
downloadButton("export",label="Download")),
column(9,
uiOutput("circplot")
)))
Server:
output$eb <- renderEdgebundle({
edgebundle(values$spp,tension=input$tension,cutoff=input$cutoff,
fontsize=input$fontsize,padding=input$padding)
})
The text was updated successfully, but these errors were encountered: