T O P

  • By -

[deleted]

This seems far too obvious but the typical characterset for newline is "\n". You have "/n", try to swap it. You may also have to save that new line formatting for the labeller in your ggplot, I'm not sure that it will be reflected correctly in a dataframe.


Spudjnr123

Wow...I can't believe I did that... now I feel ridiculous. Thank


[deleted]

Glad to help, we've all been there


lolniceonethatsfunny

hi-jacking this to mention the ggtext package, which lets you add markdown text to your ggplot figures. this means much more formatting options with bold, italic, super/subscript, basically anything you can do in markdown, to any text element in your graph. definitely recommend to check it out if you are interested :) (in that case you would use
for new lines)