handle boxplot without y-variable in tinyplot.default#454
handle boxplot without y-variable in tinyplot.default#454grantmcdermott merged 2 commits intomainfrom
Conversation
|
P.S.: It would be good to modularize this variable handling in the P.P.S.: While looking at |
|
Great, thanks for simple workaround @zeileis.
Agree. I worry it will require a larger refactoring b/c these exceptions come before the type-based
I might be mis-remembering (we should test), but I think we need those for the flip logic here. I have a vague memory of that anyway... |
|
@zeileis Assuming you agree with my comments (which basically amount to "let's tackle these other issues separately"), do you mind adding a NEWS item? We can merge directly afterwards. |
|
OK, good, |
Fixes #453
Like
boxplot(x)it would be good iftinyplot(x, type = "boxplot")created a single boxplot without a grouping variable (and without corresponding labels on the x-axis).I think that this is not easy to handle in
type_boxplot()but requires a few simple workarounds intinyplot.default()where theis.null(y)cases are handled. I've added:With this both the default and the formula interface work:
Grouping and faceting still works: