Introduction

This presentation will give you an overview of the simple shiny.io application "PlotPolynomials"

Program Purpose

This application is designed to display y = xn where the user chooses "n" via a slider

Server Function

The server runs the following code

# create data to plot
    #n is given a value from the ui.
    #Here I have just used a 2: the default slider value.
    n <- 2
    x  <- seq(-7,7,.1) 
    y  <- x^n

The Plot

Then the plot looks like this when the user has selected "2"

    plot(x, y, xlim = c(-7,7), ylim = c(-50,50), type = "b")
    abline(h=0)
    abline(v=0)