gg_arc: data.frame for ggplot2 arc line

Description Usage Arguments Value Author(s)

View source: R/ggarc.R

Description

helper function for adding horizontal arc to ggplot2 object via geom_path() modified from: http://stackoverflow.com/questions/6862742/

Usage

1
gg_arc(xmin = 0, xmax = 10, ymin = 0, height = 10, n_pt = 100)

Arguments

xmin

numeric value specifying minimum horizontal value for arc (default = 0)

xmax

numeric value specifying maximum horizontal value for arc (default = 10)

ymin

numeric value specifying minimum vertival value for arc (default = 0)

height

numeric value specifying height of arc. Negative value can be specified for arc extending down (default = 10)

n_pt

numeric value specifying number of points used to draw arc (default = 100)

Value

data.frame with 2 columns specifyin x and y coordinates of points of arc to be passed to ggplot2::geom_path()

Author(s)

Patrick Kimes


pkimes/pkimes documentation built on May 25, 2019, 8:20 a.m.