R/JiangZhihangToolsquiz-myplot.R

Defines functions plotMyData

Documented in plotMyData

  #' Wrapper function for ggplot2 for data d
  #'
  #'plot data using ggplot
  #'
  #' @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()
}
ZJ107/JiangZhihangTools documentation built on May 25, 2019, 2:23 p.m.