lavel_vertical: Labels to Vertical Writing System

label_verticalR Documentation

Labels to Vertical Writing System

Description

label_vetical is function to convert the axis labels of a ggplot2 format graph to a vertical writing system. vertical_list is the list includes formulas for converting basic horizontal bars to vertical bars.

Usage

label_vertical(
  replace_list = vertical_list(),
  line_feed = NULL,
  blank_space = "    "
)

vertical_list()

Arguments

replace_list

Specifies what to replace the string with, either in expression form or in list form containing expression forms. If no replacements are needed, specify NULL.

line_feed

Enter a key character or escape sequence for line breaks. This is given directly to strsplit as an argument, so it must be in an acceptable form. If NULL is given, no line breaks will be made.

blank_space

Adjust the blanks to adjust for slight misalignment in strings that have no characters on the adjacent line when breaking lines. Please enter the required amount. If you enter a string or other text, the string will be output where there is no string.

Details

It does not actually realize the vertical writing system, but actually just changes lines one character at a time. If horizontal bars are not replaced with vertical bars, unnatural Japanese notation may result.

The function to express line breaks when the text consists only of Japanese has been provided, but there is a possibility of misalignment when half-width characters are included or when proportional fonts are used.


indenkun/infun documentation built on April 17, 2025, 2:52 p.m.