Shiny app Doesnt show outputs

0 votes

I created a ashiny app weeks back, it was working fine and showing all graphs in the app, But now it isn't showing any outputs. What to do?

Code i used in ui and server -

tabPanel("KMeans Clustering",
         h2("KMeans Clustering",align = "center"),
         kmeans_def,br(),br(),
         sidebarPanel(numericInput("noc",label = "Select Number of clusters", min = 2, max = 5, value = 3),submitButton("Submit")),
         mainPanel(plotOutput("plot"),plotOutput("ggplot")
         ))

# KMeans ------------------------------------------------------------------
km = reactive({ kmeans(mpg[8:9],input$noc) })
output$plot = renderPlot({ plot(mpg$cty,mpg$hwy, col = km()$cluster, main = "Kmeans by plot") })
output$ggplot = renderPlot({ ggplot(mpg, aes(cty,hwy,col= km()$cluster, size = 1)) + geom_point() + theme_bw() + ggtitle("KMeans by GGplot2") + theme(legend.position = "none") }) 

Jul 29 in Data Analytics by nitya
19 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Data Analytics

0 votes
1 answer

How to hide/show tabs in shiny app in R?

Hi, Radha One way is to use hidetab ...READ MORE

answered Aug 21 in Data Analytics by anonymous
• 27,880 points
76 views
0 votes
1 answer

How to render outputs of few elements(graphs) in shiny app?

hi Racheal, You can isolate those outputs which ...READ MORE

answered Aug 30 in Data Analytics by anonymous
• 27,880 points
10 views
0 votes
0 answers

Check type of input taken through textInput in shiny app

How to Check type of input taken ...READ MORE

Jul 16 in Data Analytics by rubini
25 views
0 votes
0 answers

Give output variable as input to another vaiable in shiny app

Can i send the output stored in ...READ MORE

Jul 16 in Data Analytics by rubini
66 views
0 votes
0 answers

How to deploy shiny app to shinyapps.io?

How to deploy shiny app to shinyapps.io? READ MORE

Jul 25 in Data Analytics by anitha
15 views
0 votes
1 answer

Shiny app - tabs refresh content

Asha, It's very important to not add too ...READ MORE

answered Sep 24 in Data Analytics by Cherukuri
• 27,880 points
38 views
0 votes
1 answer

Error saying "could not find function "shinyUI"" in shiny R

Its a small spelling mistake that you've ...READ MORE

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,040 points
419 views
0 votes
1 answer

Error saying "could not find function dashboardPage" in shiny R

Include this line in the code: Library(shinydashboard) READ MORE

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,040 points
253 views