Description Usage Arguments Examples
Benchmark plot creation time. Broken down into construct, build, render and draw times.
1 |
x |
code to create ggplot2 plot |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.