title: Rshiny--creation of bar plot using CSV file
body: <p>I want the bar plot to be embedded into application.output of vector d is giving me result I want that to be embedded into shinyapp and later I want to make it interactive too.</p>
  
  <pre><code> library(ggplot2)
  
   driver1 &lt;- read.csv("E:/RMARKDOWN/shiny/driver.csv",header = T)
  
   New_DataSet1&lt;- 
   data.frame(driver1$ï..Year_AG,driver1$Severity_Desc,driver1$Injury.Type)
    New_DataSet1
  
    latest &lt;- New_DataSet1[1:100,]
    latest
  
    d &lt;- aggregate(latest$driver1.Injury.Type,  by=list(chkID = 
         latest$driver1.Severity_Desc), FUN=sum)
  
  
   ui &lt;- dashboardPage(
    dashboardHeader(title = "Row layout"),
     dashboardSidebar(),
      dashboardBody()
        )
  
  
    server &lt;- function(input, output) { 
  
     #output$plot &lt;- renderPlot({    barplot(d$x, xlab = d$chkID)  })
  
    renderPlot(d$x)
    #barplot(d$x, xlab = d$chkID)
   # barplot(d$x, names.arg = d$chkID)
  
    }
  
        shinyApp(ui,server)
  </code></pre>