plotstyle: A collection of plotting parameters

View source: R/plotstyle.R

plotstyleR Documentation

A collection of plotting parameters

Description

Sets several plotting parameters by keyword.

Usage

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

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 Aug. 1, 2024, 4:55 p.m.