plotstyle: A collection of plotting parameters

Description Usage Arguments Details Examples

View source: R/plotstyle.R

Description

Sets several plotting parameters by keyword.

Usage

1
plotstyle(data = NULL, style = NULL, ...)

Arguments

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.

Details

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

Examples

1
2
3
4
5
6
7
8
require(dplyr)
data.frame(x = rnorm(100), y = rnorm(100)) %>% 
  plotstyle(tight) %>% 
  plot
  
data.frame(x = rnorm(100), y = rnorm(100)) %>% 
  plotstyle(upright) %>% 
  plot

thomasgstewart/tgsify documentation built on June 18, 2020, 11:10 a.m.