Learn R Programming

xvm (version 0.0.2)

format_text: format special text

Description

processes special formatting in xvg files, converting super/subscripts to ggplot2-compatible expressions. Specifically handles:

  • Superscripts: Converts \S...\N to ^ notation

  • Subscripts: Converts \s...\N to [] notation

Usage

format_text(text)

Value

formatted character string with ggplot2-compatible expressions

Arguments

text

character string containing xvg-formatted text