cjust: Applies center justification to my_string.

View source: R/annotation_control.R

cjustR Documentation

Applies center justification to my_string.

Description

Adds filler characters to the left and right of my_string to have the text fill the line up total_char characters.

Usage

cjust(my_string, filler = " ", total_char = get_annotation_width(), pad = " ")

Arguments

my_string

String to be centereded

filler

String character to be used to space the text over.

total_char

Integer of how many characters the text should be when done.

Value

Centered text.


Benjamin-Vincent-Lab/housekeeping documentation built on Feb. 17, 2024, 2:13 a.m.