.coordCorrection {ggbrace}R Documentation

Imports: stats

Description

Imports: stats

Usage

.coordCorrection(
  x,
  y,
  rotate,
  mid,
  textdistance = NULL,
  distance,
  outerstart,
  width,
  outside,
  bending,
  discreteAxis = FALSE
)

Arguments

x

vector, x values of all data points

y

vector, y value of all data points

rotate

number in degrees. Defines where the brace points to: 0=up (default), 90=right, 180=down, 270=left

mid

number from 0.25 to 0.75. Position of the pointer within the brace space. If NULL (default), will be determined by data.

textdistance

number. Distance of the label to the brace pointer

distance

number. Space between the brace and the nearest data point. If NULL (default), will be determined by data.

outerstart

number. If not NULL, overwrites distance and sets all braces to the same origin

width

number. Distance from the brace's start to its tip. If NULL (default), will be determined by data.

outside

boolean. If TRUE (default), brace is next to the data area. If FALSE, brace is inside the data area

bending

number from 0 to 0.5. Determines bend of the brace curves (0=rectangular). If NULL (default), will be determined by data. If too high, values will result in zick-zack lines

discreteAxis

boolean. Set to TRUE if the axis along which the brace expands is discrete (often true for bar graphs)


[Package ggbrace version 0.1.2 Index]