R/myboxplot.R

Defines functions myboxplot

Documented in myboxplot

#' The box plot value
#' This function provides a discription of the box plot.
#'
#' @param x vector of sample data from population 1
#'
#' @return This function returns a list of 6 components:
#' n: the number of observation the boxplot is drawn with
#'
#' conf: upper/lower extremes of the notch, out-value of the outliers
#'
#' group: a vector of the same length that
#' indicate to which group the outlier belongs to.
#'
#' names: a vector of names for the groups.
#'
#'
#' @export
#'
#' @examples
#'  x = rnorm(30,10,12); myboxplot (x)
myboxplot <- function(x){
  xvalue <- boxplot(x, type = "p", xlab = "Sample Data of population 1",
                    col = "dark red", horizontal = TRUE)

  return(xvalue)
}
ElahehJafarigol/Statpackage documentation built on May 10, 2020, 1:45 a.m.