Created
December 5, 2013 03:31
-
-
Save ottadini/7799691 to your computer and use it in GitHub Desktop.
Function to wrap and add newlines to R strings (for labels and titles in plots).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wrap <- function(string){ | |
paste(strwrap(string), collapse="\n") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment