plotTypeGeoms: Get ggplot geoms from plot type

Description Usage Arguments Examples

Description

Some plot types mapped to ggplot geoms. Used in shiny dashboard and trelliscope generation to gather the geom object from a plot type keyword.

Usage

1
plotTypeGeoms(plotType = c("box", "scatter", "jitter", "line", "smooth"))

Arguments

plotType

One of "box", "scatter", "jitter", "line" or "smooth"

Examples

1
2
3
4
myGeom <- plotTypeGeoms("scatter")
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) + myGeom

myGeom <- plotTypeGeoms("box")

Lodewic/accomodation-recommendation documentation built on Oct. 27, 2018, 12:12 a.m.