xy2circ: convert cartesian coordinates to circular coordinates

Description Usage Arguments Value

View source: R/xy2circ.R

Description

convert standard cartesian coordiates to coordinates in a circular plot

Usage

1
2
3
4
5
6
7
8
9
xy2circ(
  x,
  y = NULL,
  xlim = NULL,
  ylim = NULL,
  rlim = c(1, 2),
  start_angle = pi,
  clockwise = TRUE
)

Arguments

x

vector of x coordinates, or a 2-column matrix with columns x and y

y

vector of y coordinates (ignored if x is a 2-column matrix)

xlim

x-axis limits

ylim

y-axis limits

rlim

radius limits for plot

start_angle

angle to start

clockwise

If true, go clockwise

Value

2-column matrix of (x,y) locations in circle plot


kbroman/circplot documentation built on Feb. 11, 2022, 12:18 a.m.