position.orient: Text Position and Direction

Description Usage Arguments Value Note Examples

Description

Converts text postion from clock digits to c(x, y, direction) vector, or vice versa.

Usage

1
2
3
vecPos(pos)

clockPos(x, y, orient)

Arguments

pos

1-12, clock digits.

x

String, 'left', 'right' or 'center'

y

String, 'top', 'middle' or 'vertical'

orient

String, 'horizontal' or 'vertical'

Value

A vector of x-alignment, y-alignment and direction.

A clock digit number

Note

# Postion of Clock Numbers 1-12

10(l, t, v) 11(l, t, h) 12(c, t, h) 1(r, t, h) 2(r, t, v)
9(l, c, v) 3(r, c, v)
8(l, b, v) 7(l, b, h) 6(c, b, h) 5(r, b, h) 4(r, b, v)

Examples

1
2
3
4
5
6
7
8
## Not run: 
vecPos(2) ## returns c("right", "top", "vertical")

## End(Not run)
## Not run: 
clockPos("right", "top", "vertical") ## returns 2

## End(Not run)

madlogos/recharts2 documentation built on May 21, 2019, 11:03 a.m.