Closed aagarw30 closed 5 years ago
Forgot to mention that I have tried rendering with and without print()
but no success.
output$plot <- renderPlot({
print(plot_str(iris))
})
output$plot <- renderPlot({
plot_str(iris)
})
Have you tried diagonalNetworkOutput
in ui and renderDiagonalNetwork
in server? These plots are sourced from networkD3
package.
Hello, No, let me try them and confirm the outcome. Thanks for feedback.
Ty Abi
On Mon 3 Dec, 2018, 8:19 PM Boxuan Cui <notifications@github.com wrote:
Have you tried diagonalNetworkOutput in UI and renderDiagonalNetwork in server? These plots are sourced from networkD3 package.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/boxuancui/DataExplorer/issues/97#issuecomment-443735578, or mute the thread https://github.com/notifications/unsubscribe-auth/AG5dW-ZbPBNRoZ-i5Q9X0UrU6EMv9c4Rks5u1TnkgaJpZM4Y9jNR .
Hello,
I tried the recommendation however still not showing up the plot in the app. Could you please review and help?
Updated and reproducible code as follows:
library(shiny)
library(DataExplorer)
library(networkD3)
ui <- fluidPage(
diagonalNetworkOutput("plot")
)
server <- function(input, output, session) {
output$plot <- renderDiagonalNetwork({
plot_str(iris)
})
}
shinyApp(ui, server)
I was able to run your code and see the plot.
Could you try the following?
library(shiny)
library(DataExplorer)
library(networkD3)
ui <- fluidPage(
diagonalNetworkOutput("plot")
)
server <- function(input, output, session) {
output$plot <- renderDiagonalNetwork({
str_list <- plot_str(iris, print_network = FALSE)
diagonalNetwork(str_list)
})
}
shinyApp(ui, server)
Thanks so much ! Tested and working fine now. This can be closed. Appreciate help and support in this matter. ty Abi
On Wed, Dec 5, 2018 at 9:50 PM Boxuan Cui notifications@github.com wrote:
I was able to run this code and see the plot. Could you try this?
library(shiny) library(DataExplorer) library(networkD3) ui <- fluidPage( diagonalNetworkOutput("plot") ) server <- function(input, output, session) { output$plot <- renderDiagonalNetwork({ str_list <- plot_str(iris, print_network = FALSE) diagonalNetwork(str_list) }) }
shinyApp(ui, server)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/boxuancui/DataExplorer/issues/97#issuecomment-444545785, or mute the thread https://github.com/notifications/unsubscribe-auth/AG5dW_C1_jrq__0-j3EGoqlctLNuIh8rks5u1_I6gaJpZM4Y9jNR .
Thanks for using DataExplorer!
Hello, I am trying to plot the structure of my dataset using the
plot_str()
. The function works well when I use in R console however when integrated with R Shiny it does not show up the plot.Here is the reproducible example. Not sure if I am making a mistake or rendering incorrectly.
Additionally, I am running this in WIN OS,
str_intro()
renders perfectly in R Shiny.Thanks in advance for help.