You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's another way to do it. And actually, it just takes one command (theme), so maybe it's not worth a separate xgx function, though it might be easier to remember to type xgx_ylab_horiz("label") than the two lines it takes to call both ylab and remember all the theme/element code. It does scrunch the graph a little bit, but I think it's nicer than using the title option because it would be less confusing.
To make sure users don't have a horizontal ylabel that is too long, we could do some string checking and manipulation, so if the ylabel is really long, we could figure out a reasonable way to insert “\n” characters. And there could be a default “maximum character length” option of say 20, that the user can tweak, or just make their own custom string with “\n”s where they want. I bet there’s even some R function or other for splitting strings in a smart way we may or may not want to use.
From Andrew Wright
The text was updated successfully, but these errors were encountered: