New Functions in waffle-plot-dev Branch#6
Merged
Merged
Conversation
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.
Based on the comparison with the main branch, here are the new functions added:
Waffle Chart Functions (R/waffle-plot-functions.R)
waffle_counts()- Helper function to create counts dataframe for waffle chartscomplete_x_values()- Adds null/missing x values to countsmake_waffle_chart()- Creates horizontal waffle charts with facetscomplete_xto fill missing valueslangparameter ("en" or "es") for Spanish legend labelsmake_waffle_chart_tall()- Creates vertical/tall waffle chartsmake_waffle_chart()but with vertical orientationcomplete_xandlangparametersVariable Description Sorting Functions (R/sort-var-description.R)
sorted_by_widest_appearance()- Sorts variable descriptions by how widely levels appear across groupssorted_by_most_frequent()- Sorts variable descriptions by frequencyPresidential Administration Function (R/relabel-pres-admin.R)
relabel_pres_admin()- Relabels pres_admin using presidency_name_tableFilename Utilities (R/filename-tools-subset.R)
domain_filename()- Generates protest domain filename paths/domain/rural-land.htmldomain_filename_es()- Generates Spanish domain filename paths/dominio/campesino.htmlAdditional Changes
title_esfields for Spanish titles#cd6600(darkorange3) to#8B1A1A(firebrick4)All functions include proper roxygen2 documentation, examples, and testthat unit tests.