cjust: Applies center justification to my_string.

View source: R/housekeeping_annotation.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/binfotron documentation built on Oct. 1, 2024, 8:33 p.m.