powered by
This function simply adds change-line signs inside strings, so that they can be put vertically as the texts of x-axis.
add_slash_n(x, delete_space = TRUE, vertical_line = TRUE)
a character vector
whether to delete spaces. Default is TRUE.
whether to change - into |. Default is TRUE.
-
|
# NOT RUN { lab=add_slash_n(c("a b-c", "d - ef ", "n")) # }
Run the code above in your browser using DataLab