This function inserts a new line into a string when it exceeds a user-specified length. New lines are added to spaces in the string. This is intended to make plot legends more readable and tidy.
This function inserts a new line into a string when it exceeds a user-specified length. New lines are added to spaces in the string. This is intended to make plot legends more readable and tidy.