0

I have some very long labels for points on a map (Avg 35 chars per label).

Is there a "word wrap" of sorts in ggmap annotate (or other labeling function) so the lines are not stretched across the map? I'd like to either limit by number of chars or force a linebreak at a space.

Thanks!

1 Answer 1

0

Was able to find a solution here by replacing spaces with the linebreak character "\n"

StackedList <- gsub(" ", "\n", UnStackedList)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.