#' 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(...)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.