add_slash_n: Adding Slash_n inside Strings

Description Usage Arguments Examples

View source: R/add_slash_n.R

Description

This function simply adds change-line signs inside strings, so that they can be put vertically as the texts of x-axis.

Usage

1
add_slash_n(x, delete_space = TRUE, vertical_line = TRUE)

Arguments

x

a character vector

delete_space

whether to delete spaces. Default is TRUE.

vertical_line

whether to change - into |. Default is TRUE.

Examples

1
lab=add_slash_n(c("a b-c", "d - ef ", "n"))

plothelper documentation built on July 2, 2020, 4:03 a.m.