adjustypos: Adjust y position

View source: R/drawModel.R

adjustyposR Documentation

Adjust y position

Description

Adjust y position

Usage

adjustypos(
  ypos,
  ymargin = 0.02,
  rady = 0.06,
  maxypos = 0.6,
  minypos = 0,
  totalOnly = FALSE
)

Arguments

ypos

y position

ymargin

vertical margin of plot

rady

vertical radius of the box

maxypos

maximal y position of X or W variables

minypos

minimal y position of X or W variables

totalOnly

logical if TRUE, arrange ypos with center 0.5

Examples

ypos=c(0.5,0.9,1,1,2,3)
adjustypos(ypos)
adjustypos(ypos,totalOnly=TRUE)

processR documentation built on Jan. 23, 2023, 5:44 p.m.