R/JiangZhihangToolsmyplot.R

  #' Wrapper function for ggplot2 for data d
  #'
  #' Computes the mean, variance and sd of a vector
  #'
  #' @param x data.frame
  #'
  #' @return ggplot2
  #' @export
  #' @examples
  #' data(d)
  #' plotMyData(d)
plotMyData<-function(x){
  library(magrittr)
  x%>% ggplot2::ggplot()+ggplot2::aes(x=x, y=p)+ggplot2::geom_point()
}
jackingg/12345 documentation built on May 25, 2019, 6:22 p.m.