boxify: "Boxify" x,y vectors for a "boxy" xy plot

View source: R/boxify.R

boxifyR Documentation

"Boxify" x,y vectors for a "boxy" xy plot

Description

Function to "boxify" x,y vectors for a "boxy" xy plot.

Usage

boxify(x, y, dx = NULL)

Arguments

x
  • vector to expand

y
  • vector to expand

dx
  • increment along x-axis

Details

This function expands each x,y pair to x+c(-1,0,0,1)dx/2 and yc(0,1,1,0), which provides a "box".

Value

dataframe with expanded elements x,y


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.