R/ggScalebar.R

Defines functions ggScalebar

#' Title
#'
#' @param xunit
#' @param yunit
#' @param ...
#'
#' @return
#' @export
#'
#' @examples
#' library(ggplot2)
#'ggplot(mtcars, aes(cyl, mpg)) + geom_point()  ->p

#'p

#'p + coord_scalebar( "ms", "pA" ) + theme_scalebar()
#'p + ggScalebar(" min", " nA")
#'p + ggScalebar(" min", " nA",  xlab.pos="t")

ggScalebar<-function(xunit,yunit,...){
  list(
    coord_scalebar(xunit,yunit, ... ),
    theme_scalebar(...)
  )
}
tdanker/ephys2 documentation built on Aug. 11, 2019, 12:12 p.m.