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, 2019 in Data Analytics by nitya
539 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 22, 2019 in Data Analytics by anonymous
• 33,030 points
6,746 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, 2019 in Data Analytics by anonymous
• 33,030 points
739 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, 2019 in Data Analytics by rubini
750 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, 2019 in Data Analytics by rubini
584 views
0 votes
1 answer

How to deploy shiny app to shinyapps.io?

There are 2 ways to deploy shiny ...READ MORE

answered Nov 4, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,090 views
0 votes
1 answer

Shiny app - tabs refresh content

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

answered Sep 24, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,675 views
+1 vote
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,840 points
2,648 views
+1 vote
1 answer

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

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

answered Nov 29, 2018 in Data Analytics by Maverick
• 10,840 points
3,701 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP