I am able to create Shiny App and produce the output. I have drop down and multiline text box in my UI
shinyUI(
pageWithSidebar(
headerPanel("The Team analysis"),
sidebarPanel(
selectInput("SFAM","Select Team",choices = c("A","B"),selected = FALSE),
h4("Multi-line text input test"),
tags$style(type="text/css", "textarea {width:100%}"),
tags$textarea(id = 'input_text',placeholder = 'Type here', rows = 8, ""),
verbatimTextOutput("output_text"),
actionButton("Run","click me")
),
I am connecting the text from multiline text box to subset a R dataframe.
when I am typing a single value its giving the result with graph in place.(a bar or line chart), R code is as follows;
Server:
```R
shinyServer(
function(input,output){
output$MyPlot<-renderPlot({
data2<-subset(data,data$team %in% input$input_text)
ggplot(data2, aes(x=data2$team)) +
geom_bar(aes(y=data2$Count), fill='deepskyblue4', stat="identity")
}
})
```R
When I am entering multiple value in multiline text box, am getting empty dataframe which result in no graph.
1. I want to know is there any other text box which can accommodate multiple entry and pass it to subset using "in"
**"data2<-subset(data,data$team %in% input$input_text)"**
2. How we can enter value in multi line text box whether comma separated or quotes separated,
example: Team1, Team2 or "Team1" "Team2".
Please help me with this..