Y
Hacker News
new
|
ask
|
show
|
jobs
by
matijsvzuijlen
5 days ago
Why are all the parameters full words except 'labs'? I find it jarring because to me 'lab' is short for laboratory, not label.
3 comments
nxobject
5 days ago
I suspect for consistency with ggplot - the same reason why ‘aes’ is shorthand and everyone forgets that it stands for “aesthetic”.
https://ggplot2.tidyverse.org/reference/labs.html
link
matijsvzuijlen
5 days ago
Thanks, that makes sense. I actually just parsed aes as related to encryption without even considering how weird that was given the contect.
link
nxobject
5 days ago
I get it – in my (limited) opinion, there's a lot that's quirkily (but avoidably) named about ggplot and the surrounding R ecosystem in general.
link
bestouff
5 days ago
He's open to API suggestions, you should open an issue
link
matijsvzuijlen
5 days ago
Yes, I will do that!
link
mcanouil
2 days ago
That's fixed in 0.4.0 awaiting approval for Typst Universe (plus other improvements in various areas).
link
MoonZ
5 days ago
Jesters would say it's because author's a fan of labradors. (source: he's my neighbour)
link
mcanouil
2 days ago
No comment^^
link
https://ggplot2.tidyverse.org/reference/labs.html