benchplot: Benchmark plot creation time. Broken down into construct,...

Description Usage Arguments Examples

View source: R/bench.r

Description

Benchmark plot creation time. Broken down into construct, build, render and draw times.

Usage

1

Arguments

x

code to create ggplot2 plot

Examples

1
2
3
4
5
6
benchplot(ggplot(mtcars, aes(mpg, wt)) + geom_point())
benchplot(ggplot(mtcars, aes(mpg, wt)) + geom_point() + facet_grid(. ~ cyl))

# With tidy eval:
p <- expr(ggplot(mtcars, aes(mpg, wt)) + geom_point())
benchplot(!!p)

TomeTiger/ggplot2 documentation built on May 29, 2019, 7:53 a.m.