Learn R Programming

loon.ggplot (version 1.3.4)

l_getSubtitles: Return the subtitles

Description

Return the subtitles

Usage

l_getSubtitles(target)

# S3 method for l_facet_ggplot l_getSubtitles(target)

# S3 method for l_facet_wrap l_getSubtitles(target)

# S3 method for l_facet_grid l_getSubtitles(target)

Value

A list of labels, i.e. subtitles, labels, title, etc

Arguments

target

an l_facet_ggplot object. If the ggplot object is faceted (either by facet_wrap or facet_grid), an l_facet_ggplot object will be returned once it is turned to a loon plot.

Examples

Run this code
if(interactive()) {
p <- ggplot(mpg, aes(displ, hwy)) +
  geom_point() +
  facet_wrap(vars(class))
lp <- loon.ggplot(p)
l_getSubtitles(lp)
}

Run the code above in your browser using DataLab