R-CMD-check / R CMD check (push) Successful in 4m38s
add_logo_ga() now gives the logo its own band (logo_height inches) below the plots, as add_logo() does, and leaves plot margins alone unless margin_param is given. Closes #28 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2.5 KiB
2.5 KiB
civilytics 0.3.2
New features
civilytics_logo()andadd_logo()gainlogo_height(inches, default0.5), the height of a band reserved for the logo.patchworkis now a suggested package, used when a patchwork composition is passed tocivilytics_logo().- Added comprehensive test coverage for the
prop_confmodule, including correctness checks againstbinom.test()for Clopper-Pearson intervals and formula-based verification for Wald and Agresti-Coull intervals.
Bug fixes
civilytics_logo()/add_logo()now render every panel and theplot_annotation()of a patchwork composition. They previously drew only the last panel (#20).- The logo now sits in its own reserved band instead of pulling the plot down with negative margins, so captions are no longer clipped at the bottom edge and the layout no longer depends on whether showtext is active (#20).
add_logo_ga()gets the same reserved logo band (logo_height) and no longer pulls the plots down with a negative margin.margin_paramstill overrides the bottom margin when given (#28).- The logo keeps its own aspect ratio on any canvas.
make_logo_grob()used to stretch it to a fixed fraction of the plot width, so its shape changed with the canvas and it was already about 1.5 times too wide at 11 by 7 inches (#20). font_scalenow defaults to1incivilytics_logo(),add_logo()andadd_logo_ga(). The old default of1.1enlarged the base text by 10% whenever a logo was added. Passfont_scale = 1.1to keep the old sizes (#20).style_flextable_civilytics()defaults now come fromcivilytics_colorsinstead of Bootstrap hex values: headernavy_700, zebrapaper_2, outer borderrule_strong, inner borderrule, footer textink_3. Tables built with the defaults change appearance (#21).civilytics-reveal: PDF output keeps slide margins, ordered-list numbers no longer clip at the left edge, and Quarto column widths (.column width="60%") are honored. Columns without a width stay equal, and the default gap is now1.5em(#25, #26, #27).- Removed vendored headshot images (
Knowles_Headshot_2019_good.jpg,Knowles_Headshot_2019_prisma.jpg) frominst/img/to prevent personal photos from being distributed with the package. Theplot_jpeg()example now references a generic placeholder path instead of a specific headshot.
Internal
- Renamed
LICENSE.mdtoLICENSEfor R packaging convention compliance so that the LGPL-3 license ships correctly with built tarballs.