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
This is just to express a personal preference for avoiding aliases in the type argument. There are already lots of possible values, and it may not be clear to users why there are differences between, for example, h, hist, and histogram, or between j and jitter. Some similar-looking things are different; others are just aliases. Sure, this can be documented, but there are costs to duplication and lack of consistency.
One potential way to distinguish the "families" of geoms, would be to let type argument accept:
One-letter types as character: Standard types provided by the plot() function only. p, l, etc.
Full word types as strings: New types supplied by tinyplot: hist, rect, etc.
This is just to express a personal preference for avoiding aliases in the
typeargument. There are already lots of possible values, and it may not be clear to users why there are differences between, for example,h,hist, andhistogram, or betweenjandjitter. Some similar-looking things are different; others are just aliases. Sure, this can be documented, but there are costs to duplication and lack of consistency.One potential way to distinguish the "families" of geoms, would be to let
typeargument accept:plot()function only.p,l, etc.tinyplot:hist,rect, etc.type = function()#168This would allow users to clearly distinguish functionality with just a glance at the code.
TBC, this is not a big deal at all; just an aesthetic preference. Feel free to close and keep the aliases.