Changelog
y2artisan 0.8.3
New features
- Various
ms_*_y2()and other automated charting functions have new and more intuitive default aesthetic settings for more efficient integration with common reporting workflows ## Bug fixes - Fixed a bug in various
gg_*_y2()functions where existing linebreaks in strings were overwritten by the “string wrapping” function for formatting labels - Fixed a bug in the
add_section_header_y2()function that erroneously returned an error for correctly specified section headers of “municipal” style reports
y2artisan 0.8.1
New features
- Functions used to automatically create and populate powerpoint slides with charts (
add_section_header_y2,add1s_y2, andadd1c_y2) can now be used to automate municipal style reports of a given style guide. Functions have a new argument called “report_style” which can be used to specify the style of report being made. ## New Functions -
add_legend_y2- Creates a powerpoint table legend with colored legend keys using flextable and adds it to the report
y2artisan 0.8.0
Breaking changes
- all gg_* functions now have the default font of “Flama” rather than “flama” ## New features
-
gg_donut_y2has a new argument center_label with a default of ‘NULL’. When set to ‘NULL’, each individual level of the donut chart will have a label over its respective section. If set to a specific value of the color_var, that percentage will appear in the center without a label, and no other labels will appear on the donut chart. ## Bug fixes - Deprecated ggplot code fixed for gg_* functions. Better warnings for missing fonts
y2artisan 0.7.0
New Functions
-
gg_donut_y2- Creates a donut chart ggplot object ## Breaking changes -
footer_y2has slightly new behavior for the label_length, which now truncates after 100 characters instead of 15, and it works on all question types, not just matrix-style questions. Additionally, the “n” that is counted for each question now excludes “NA” answers from open-ended questions and does not count them as responses that have not answered the question. - Dropping
ms_footer_y2now that we’ve had its newer versionfooter_y2for several versions. ## Bug fixes - footer_y2: Updates to documentation. Fixes to removal of white space and hard returns. Updated coding practices to reflect new version of tidyselect. Lots of tests added that led to finding these bugs and making these updates.
- add_* functions: updated documentation
- openend_y2: filled in required arguments in internal separate function
y2artisan 0.6.4
New Functions
add_colors_facebook_y2 - Add the standard Facebook color palette to your environment. ## New Features ms_line_y2 - New argument smooth: DEFAULT = 0. If 0, the lines will be straight between points. If 1, the lines will be smoothed. * add_fonts_y2 - New argument show_fonts_added: DEFAULT = FALSE. If TRUE, shows the available fonts loaded in by add_fonts_y2().
y2artisan 0.6.3
Function Updates
-
add1s_y2- corrected footer to allow it to be editable without zooming in on the powerpoint. ## New Functions -
add_fonts_y2- Use add_fonts_y2() to add the most commonly used fonts at Y2 to your Rsession. This will make them easily available for charting in ggplot and other instances where fonts may be needed. Use list_fonts_y2() to see which fonts will be loaded to your session. -
list_fonts_y2- Use list_fonts_y2() to see the available fonts loaded in by add_fonts_y2().
y2artisan 0.5.9
New functions
-
footer_y2- Wrapper around ms_footer. Pipe in the dataset (responses), specify the variable, and set the question type. Save out the nicely formatted string to an object to pass to the footer of an ms chart -
ms_print- Easily preview ms_chart objects. By default prints “chart” in environment ## New arguments -
set_color_settings_y2- added option to select different column for colors. Increases ease of use for grouped type charts
y2artisan 0.5.5
New functions and bug fixes
-
set_text_settings_y2No longer do you need suffer the needless of pains of specifying every label text setting only to have your heart despair at another error (hint: it’s probably a typo). This function not only reduces your typed amount, it reduces your human error. Save a frequencies object using freqs(). The text settings will be automatically matched to the “label” column of the frequencies. -
set_color_settings_y2Serving alongside it brother in arms, set_color_settings will free you from the chains of endless color naming vectors of death. Save a frequencies object using freqs(). Provide colors to the set_color_settings function. The colors will be automatically matched to the “label” column of the frequencies. -
ms_footer_y2Tired of copying and pasting question wording and n-size to your slides? This is the function for you! Pipe in the dataset (responses), specify the variable, and set the question type. Save out the nicely formatted string to an object to pass to the footer of an ms chart.
y2artisan 0.5.0
Breaking changes
- All defaults for
add*_y2functions updated to match new Qualtrics template, as of March 2021 (new slide name defaults and positioning for new template) - Default fonts for all
ms*_y2functions updated to “BentonSans Regular” from Arial, to match new Qualtrics template -
add1t_y2andadd2t_y2functions deleted. Instead, useadd1c_y2andadd2c_y2because they now also add tables to PowerPoint, not just charts
y2artisan 0.4.3
y2artisan 0.4.2
y2artisan 0.4.0
Breaking changes
add_colors_y2
- By default, color vectors are now in UPPER CASE (e.g. green is now GREEN)
- Added set of GRAY colors
- When working with old code, you can still use this function, just use the
case = 'lower'argument to revert color vectors to lowercase
ggchart_save_y2
- The function is now tidy, meaning the first argument is now chart (a ggplot2 chart object) instead of chartname (the file name you wish you save your chart as). Essentially the only change is that you should now pipe your chart object into the function first.
y2artisan 0.1.0
Overview
First release with the follow functions:
ms_chart functions: 1. add1c 2. add1s 3. add1t 4. add2c 5. add2t 6. add3c 7. add4c 8. add5c 9. add6c 10. add_section_header 11. bar_grouped 12. bar_single 13. bar_stacked 14. line_chart 15. max_dif
ggplot functions: 1. gg_grouped 2. gg_single 3. gg_stacked 4. ggchart_save 5. openend 6. wordcloud 7. wordcloud2