R/myplot.R

Defines functions myplot

Documented in myplot

#' A function to plot x, y
#'
#' @param x vector of sample data from population 1
#' @param y vector of sample data from population 2
#'
#' @return 2 plots, for sample one and two
#' @export
#'
#' @examples
#' x = rnorm(30,10,12); y = rnorm(40,20,15); plot(x,y)
myplot <- function(x, y){
  plot(x, type = "p", xlab = "Sample Data of population 1", col = "dark red")
  par(new=FALSE)
  plot(y, type = "p", xlab = "Sample Data of population 2", col = "dark blue")
}
ElahehJafarigol/R.Package.Stat documentation built on April 29, 2020, 12:25 a.m.