Skip to content

Commit

Permalink
Show plot data
Browse files Browse the repository at this point in the history
  • Loading branch information
mawds committed Aug 9, 2018
1 parent 4ee4c74 commit b373f1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion worked_example/app.R
Expand Up @@ -40,7 +40,8 @@ ui <- fluidPage(

# Show a plot of the generated distribution
mainPanel(
plotOutput("gapminderPlot")
plotOutput("gapminderPlot"),
tableOutput("graphData")
)
)
)
Expand All @@ -54,6 +55,10 @@ server <- function(input, output) {
filter(continent %in% input$continent)
})

output$graphData <- renderTable({
plotData()
})

output$gapminderPlot <- renderPlot({
plotData() %>%
produceGapminderPlot()
Expand Down

0 comments on commit b373f1f

Please sign in to comment.