Factory function to control ggplot2::geom_xxx functions
Usage
get_geom_function(geom, allowed = c("line", "bar", "point"))Examples
ggfortify:::get_geom_function('point')
#> function (mapping = NULL, data = NULL, stat = "identity", position = "identity",
#> ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE)
#> {
#> layer(mapping = mapping, data = data, geom = "point", stat = stat,
#> position = position, show.legend = show.legend, inherit.aes = inherit.aes,
#> params = list2(na.rm = na.rm, ...))
#> }
#> <bytecode: 0x55b727902a08>
#> <environment: 0x55b727935ff8>
ggfortify:::get_geom_function('line', allowed = c('line'))
#> function (mapping = NULL, data = NULL, stat = "identity", position = "identity",
#> ..., orientation = NA, arrow = NULL, arrow.fill = NULL, lineend = "butt",
#> linejoin = "round", linemitre = 10, na.rm = FALSE, show.legend = NA,
#> inherit.aes = TRUE)
#> {
#> layer(mapping = mapping, data = data, geom = "line", stat = stat,
#> position = position, show.legend = show.legend, inherit.aes = inherit.aes,
#> params = list2(na.rm = na.rm, orientation = orientation,
#> arrow = arrow, arrow.fill = arrow.fill, lineend = lineend,
#> linejoin = linejoin, linemitre = linemitre, ...))
#> }
#> <bytecode: 0x55b7140b24c0>
#> <environment: 0x55b7140b0990>