This presentation will give you an overview of the simple shiny.io application "PlotPolynomials"
This presentation will give you an overview of the simple shiny.io application "PlotPolynomials"
This application is designed to display y = xn where the user chooses "n" via a slider
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
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)