can't show the plot

Hi i am having a trouble with this code there is no plot showing after preseing genarete network
Note: I am using SeqNet package to generate the network

'''r
function(input, output, session) {

observeEvent(input$network_button, {

observeEvent(input$tool_choice, {
  if (input$tool_choice == "SeqNet")  
    p <- 100 # Number of nodes (genes) in the network.
 n <- 100 # Number of samples to generate.
   network <- random_network(p) # Create a random network of size p.
 network1 <- gen_partial_correlations(network) # Generate weights.

  g <-reactive({
    gen_rnaseq(n, network1) 
    myplot <- recordPlot()
    myplot
  }) 

 
  output$network_plot<-renderPlot({
    p <- req(g())
    replayPlot(p)
  })
  output$network_plot_2<-renderPlot({g})
  
})##end if seqnet

})##end network butten

}##end function
'''

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.