R/SimpPlot.R

Defines functions SimpPlot

Documented in SimpPlot

#' @title Simple Scatter Plot with set Equation
#'
#' @param x An x value from 0 to 50 that will return a plot of a single point corresponding to the x and y values
#'
#' @return A plot of x vs y
#' @export
#'
#' @examples
#' x <- 0:50; SimpPlot(x)
SimpPlot <- function(x){
  y <- 0.03 + 0.05*x + 0.02*x^2
  plot(y~x, col = "blue", lwd = 2)
}
dkmeadows/MATH4753MEADOWS documentation built on Feb. 27, 2021, 12:35 a.m.