chapter5/interactive1.R and run.textOutput() and input$click, get the shiny app to print out the x and y coordinates of a user's click on the plotx and y to 4 significant figures.ggplot2, change the base graphic plot to a ggplot2 scatter plot.chapter2/interactive2.R and run. Explore the other types of point selection.chapter5/interactive3.R and run.nearPoints function, what doesthreshold = 100 do?maxpoints = 2 do?allRows = TRUE do?addDist = TRUE do?allRows = TRUE argument.brushedPoints() for this.chapter5/invalidate.R and run.This is a less guided exercise. The file below will give you some example code that you can play around with and modify to see what is going on. Feel free to try things with your own data.
chapter5/ui_app1 and runAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.