Aesthetics: update plots look and feel for consistency#132
Merged
Conversation
Implemented for both `create_bar()` and `create_stacked()`
Previously, `cut_hour()` could accept inputs in `cut` where it equals 0 or 100. Now, a `lbound` and `ubound` solution is added to address these corner cases.
Works for both plots and tables
Accepts both character and function
Now combined "Never" with "Quarterly or less", and uses arbitrary large number for defining "Never"
Fixed validation report so that the Attributes Available table also shows those attributes with a single item
…osoft/wpa into feature/visual-improvements
…osoft/wpa into feature/visual-improvements
Added text to show unique identifiers of the query
…osoft/wpa into feature/visual-improvements
…osoft/wpa into feature/visual-improvements
…osoft/wpa into feature/visual-improvements
Legend now shows "Number of employees" rather than "Hours". This adds a new argument to the function `create_trend()`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This branch updates functions
create_bar(),create_stacked(), andcreate_dist()to improve consistent look and feel and behaviours. This version is the last pull request to the main branch before submission to CRAN for v1.5.0.Changes
The changes made in this PR are:
create_bar()to depend oncreate_stacked().create_bar()andcreate_stacked()rankargument that enables bars to be ranked in descending, ascending, or 'free' order.percentargument to enable the display of data labels and axis labels in percentages.xlimas an argument to set the maximum value in the horizontal axis.create_dist(). Also solves issue mentioned in Bug: update one to one frequency distribution buckets #114 forone2one_freq().check_query()to print single-value HR attributes as a string (previously this depends only on theDomainvariable being present in the dataset.NEWS.md.README.mdand the Additional resources section of the Analyst Guide.hrvar_trend()is added which shows a heatmapped view of the number of employees grouped by HR attribute. A new argumentlegend_titleis added to the underlying functioncreate_trend().workingpatterns_classify().Some documentation clean-up and spellchecks have also been conducted in preparation for the CRAN submission.
Highlights
Examples
New consistent formats
Ordering functionality
Checks
roxygen2::roxygenise()has been run prior to merging to ensure that.RdandNAMESPACEfiles are up to date.NEWS.mdhas been updated.