Open jbengler opened 1 day ago
One potential solution could be to implement a heuristic within tidyplot()
that estimates the optimal dodge_width
.
Pseudocode example:
if(is_discrete(x_axis_variable) || is_discrete(y_axis_variable)) {
dodge_width = 0.8
} else {
dodge_width = 0
}
The default
dodge_width
of0.8
in thetidyplot()
function leads to unexpected results in line graphs. Here, adodge_width
of0
would be more appropriate.Default behavior
Expected behavior