#' scr_lines
#'
#' @param core_frame fxl object
#' @param lty from base
#' @param color from base
#' @param size from base
#' @param mapping from base
#'
#' @author Shawn Gilroy <sgilroy1@@lsu.edu>
#'
#' @returns a layer to the core plotting object
#'
#' @export
#' @importFrom rlang enexprs
scr_lines <- function(core_frame,
lty = 1,
color = "black",
size = 1,
mapping) {
newlayer <- list()
newlayer[["type"]] <- "line"
assert_input_type(lty, "numeric", "lty")
newlayer[["lty"]] <- lty
assert_input_type(color, "character", "color")
newlayer[["color"]] <- color
assert_input_type(size, "numeric", "size")
newlayer[["size"]] <- size
newlayer[["aesthetics"]] <- NA
if (!missing(mapping)) newlayer[["aesthetics"]] <- enexpr(mapping)
core_frame$layers[[(length(core_frame[["layers"]]) + 1)]] <- newlayer
core_frame
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.