Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version1.2 #123

Merged
merged 193 commits into from
Jun 25, 2021
Merged

Version1.2 #123

merged 193 commits into from
Jun 25, 2021

Conversation

matthewstern
Copy link
Contributor

@matthewstern matthewstern commented Mar 22, 2021

This PR will encapsulate all changes for cmapplot v1.2.

This list accounts for all changes merged into the branch so far (please update as you merge):

  1. Recessions fix, with ability do display ongoing recessions and new fn argument (issue Fix update_recessions() #89, PR Fixes bug, allows for current recessions #122)
  2. Allow for abbreviation of first two digits in year axes (for both date and continuous scales; issue improved x axis control in TS #26, PR Allow for abbreviating years to two-digit versions #126)
  3. Updating old documentation to remove references to deprecated code (issue update example #118, PR Vignettes and mans #125)
  4. cmapplot_globals is now an environment rather than a list, is not exported, and has helper functions for accessing and setting them (issue v1.2 font handling and output goals #127, PR Systemfonts and friends #128)
  5. upgrade to systemfonts package-wide and employ ragg for vignettes, replacing sysfonts and x11fonts. This includes new checks for rstudio version and rstudio backend options (issue v1.2 font handling and output goals #127, PR Systemfonts and friends #128)
  6. creation of new script files cmapplot_globals.R and utilities.R (PR Systemfonts and friends #128)
  7. improvements to github action script for pkgdown site building, now builds test site in open PRs and actual site on commits to master (PR Systemfonts and friends #128)
  8. Minor documentation update to note the use of default Sans Serif fonts instead of Calibri (no PR - direct commit to this branch below)
  9. Corrected issue with finalize_plot vignette not correctly loading margins1.png/margins2.png on pkgdown site (issue Margins image is not displaying in vignettes #129, PR Change case of PNG file extensions #133).
  10. Added option to use continuous color gradients with cmap_[color/fill]_discrete() (issues discrete option for continuous palettes #70 & unable to use cmapplot continuous color palettes for fill aesthetic #119, PR Allow for discrete versions of gradients #131).
  11. Migrated graphics devices to ragg versions and disabled window mode. Did not implement svglite, although that remains a long-term goal (issue v1.2 font handling and output goals #127 covers what was implemented and issue Implementing svglite #134 details what was not; changes are merged from PR finalize w/ systemfonts & ragg #130)

sarahcmap and others added 14 commits November 24, 2020 17:26
Also updates documentation. Passes check()
Passes check()
Convert dates into a more readable "Month Year" format for the character column, and update the default table to accommodate new format.
read.csv can read a url directly, while read_excel() can't. So, the transition read.csv eliminates the need for the temp file download... and therefore for the RCurl package.
- function now does not need any special packages. @dlcomeaux 's new work already eliminated the need for lubridate, and there was no actual reason to store the data `as_tibble()`.
-rearranged some dplyr commands to eliminate some steps ... same actions are being taken, just fewer pipes.
- sysdata.rda is now updated with the new recessions table--it's the same, just a df now, not a tibble
-  caught a few typos in the man file for this function.
I forgot the elegant hell of ggproto objects.  Seems to work. Would appreciate some additional testing @dlcomeaux
creation of numeric dates only occurs if numeric axis specified. lubridate import established and package marked as required. readxl removed from suggests.
Fixes bug, allows for current recessions
@matthewstern matthewstern added this to the v1.2 milestone Mar 22, 2021
Daniel Comeaux and others added 15 commits March 23, 2021 14:01
Notes the location of the recessions table
Doesn't work quite yet.
Replaced by pretty_breaks
Replaced by pretty_breaks
Addresses outstanding issues, adds ability for date scales, and adds documentation
I'm going to merge this now. We can continue to capture documentation changes in the feature branches we add to 1.2, or into the 1.2 branch directly.
Follow's Matt's suggestion. Updates documentation and passes `check`.
Addresses some (not all) of Matt's comments
@dlcomeaux
Copy link
Contributor

@matthewstern I prefer the simpler solution. I can implement it. If others want to do the more complex one eventually, that's fine with me, but for now, I think that's a relatively low priority.

@nmpeterson
Copy link
Contributor

I want to point out that the results of viz_palette() and viz_gradient() are actually different for the same continuous color scheme (as they should be): viz_palette() only includes the defined colors, whereas viz_gradient() includes all of the interpolated colors, too. For this reason, I think the best option is to merge everything into a single list, and allow the continuous schemes to be visualized by both functions.

Palette:
div_teal_orange_palette

Gradient:
div_teal_orange_gradient

@dlcomeaux
Copy link
Contributor

Ah, that is a good point, @nmpeterson . I am pretty busy this week, so I don't know that I have time to do that right now. I could look at it next week if we haven't gotten to it yet.

- moved all palettes to tibble in globals
- removed `cmap_gradients` and `cmap_palettes` objects
- adjusted `viz_gradient` and `cmap_pal_continuous` fns to use this new setup.

Outstanding:
- adjust discrete functions accordingly
- update namespace and DESCRIPTION
- adjust documentation, including and especially the `cmap_palettes` and `cmap_gradients` objects. Consider combining these into a single help page.
@matthewstern
Copy link
Contributor Author

FYI I'm working on these adjustments in the branch color_tweaks. I'm part of the way there. If anyone has time to do the rest, lets chat and I can update you as to where I'm at.

@matthewstern matthewstern merged commit 2c7912d into master Jun 25, 2021
@matthewstern matthewstern deleted the version1.2 branch June 28, 2021 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update example Fix update_recessions() improved x axis control in TS
5 participants