-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Follow up from #469:
I wonder if we shouldn't support a
type_barplot(label = TRUE)argument that would add these labels directly?
Apart from requiring less typing than the current, manual plt_add(type = "text", ...) approach, this would also be easier to integrate with dodged barplots where beside = TRUE. At least, in principle.
But also see @zeileis's reply:
Yes, maybe. Although one argument wouldn't be enough, would it? We would need to decide whether we want to display
- absolute and/or (conditional) relative frequencies
- ...or use some other formatter, e.g., for adding custom prefixes, suffixes, rounding, etc. (especially for other aggregation
FUNctions)- at the top or bottom or center of the box
- whether to
adjust or modify theposition- what
cexorcolto use for the text (or possibly other font properties)- ...
In short, this is not so trivial, unfortunately.
Metadata
Metadata
Assignees
Labels
No labels