plotstyle | R Documentation |
Sets several plotting parameters by keyword.
plotstyle(data = NULL, style = NULL, ...)
data |
NULL or data.frame / data.table. See details. |
style |
NULL or a non-quoted character string which indicates the plot style. See details for list of plot styles. |
If a data object is provided, the exact same object is returned. This allows one to set plotting parameters within a pipe chain.
Plotting styles include:
NULL (Default) tight upright
require(dplyr)
data.frame(x = rnorm(100), y = rnorm(100)) %>%
plotstyle(tight) %>%
plot
data.frame(x = rnorm(100), y = rnorm(100)) %>%
plotstyle(upright) %>%
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.