Spanner alignment correction #662
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes a longstanding issue where column labels subordinate to column spanner labels had their alignment forced to be "center". This resulted in a balanced spanner-label/column-label assembly but the misalignment between such column labels and their data cells resulted in a worse appearance (especially magnified as column widths were increased). Furthermore, the center alignment was at odds with what the community wanted and was contrary to advice from experts on the matter. Now there is no forced alignment of column labels.
Should you need the old behavior,
tab_style()can be used along withcell_text(align = "center").This PR also changes to automatic alignment of integer values from "center" to "right". This was another oversight but is corrected now.
An example plot, using the
airqualitydataset is shown below:Fixes: #607