prefer_height("a label")
prefer_height("this is\na label")
prefer_width("abc")
prefer_width("a long long label")
prefer_width("line\nbreaks") # 'breaks' dominates the width because it is wider
prefer_width("multiple\nvertical\nlines", horizontal = FALSE)
Run the code above in your browser using DataLab