Learn R Programming

ggfortify (version 0.4.17)

get_geom_function: Factory function to control ggplot2::geom_xxx functions

Description

Factory function to control ggplot2::geom_xxx functions

Usage

get_geom_function(geom, allowed = c("line", "bar", "point"))

Value

function

Arguments

geom

string representation of ggplot2::geom_xxx function

allowed

character vector contains allowed values

Examples

Run this code
ggfortify:::get_geom_function('point')
ggfortify:::get_geom_function('line', allowed = c('line'))

Run the code above in your browser using DataLab