inst/apps/regression_plots/server.R

server = function(input, output, session) {

  output$plotreg <- renderPlot({
    
      par(oma = c(0,0,0,0), mar = c(4,4,2,2))
      input$evalreg
      return(isolate(eval(parse(text=input$regplot))))
})
}

Try the teachingApps package in your browser

Any scripts or data that you put into this service are public.

teachingApps documentation built on July 1, 2020, 5:58 p.m.