make_formatted_title.Rd
this function puts line breaks into long strings
make_formatted_title(title, character_width = 20)
title | the vector of values you would like to add carriage returns to |
---|---|
character_width | how many characters do you want each line to be maximum |
a <- "A really long title for a graph that will probably not fit but we need to write it all" make_formatted_title(a)#> [1] "A really long title\nfor a graph that\nwill probably not\nfit but we need to\nwrite it all"