Package: Canton 0.0.8

Tim Holy
Canton: Consistent Fonts and Figure Export for Scientific Publication Workflows
Provides a unified interface for exporting figures created with base graphics, 'ggplot2', 'grid', 'pheatmap', and 'ComplexHeatmap' to PDF, PNG, JPEG, and TIFF files. Selects an appropriate rendering strategy based on the plot object and supports exporting a figure to multiple formats in one call. Also provides font configuration and diagnostics, reusable figure presets, publication-oriented themes, and colour palettes. The 'ggplot2' graphics framework is described by Wickham (2016, ISBN:978-3-319-24277-4).
Authors:
Canton_0.0.8.tar.gz
Canton_0.0.8.zip(r-4.7-any)Canton_0.0.8.zip(r-4.6-any)Canton_0.0.8.zip(r-4.5-any)
Canton_0.0.8.tgz(r-4.6-any)Canton_0.0.8.tgz(r-4.5-any)
Canton_0.0.8.tar.gz(r-4.7-any)Canton_0.0.8.tar.gz(r-4.6-any)
Canton_0.0.8.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
Canton/json (API)
| # Install 'Canton' in R: |
| install.packages('Canton', repos = c('https://scienceadvances.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/scienceadvances/canton/issues
Last updated from:629aeb2017. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 140 | ||
| source / vignettes | OK | 179 | ||
| linux-release | OK | 135 | ||
| macos-release | OK | 96 | ||
| macos-oldrel | OK | 67 | ||
| windows-devel | OK | 72 | ||
| windows-release | OK | 76 | ||
| windows-oldrel | OK | 69 | ||
| wasm-release | OK | 121 |
Exports:figure_presetfontcheckfontlisthueimagesavemkdirpwdresetfontscale_color_canton_cscale_color_canton_dscale_colour_canton_cscale_colour_canton_dscale_fill_canton_cscale_fill_canton_dsetfonttheme_cantonusing
Dependencies:base64encclicpp11farverggplot2gluegtableisobandjsonlitelabelinglifecycleR6RColorBrewerrlangS7scalessystemfontsvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Canton colour scales for ggplot2 | canton_scales scale_color_canton_c scale_color_canton_d scale_colour_canton_c scale_colour_canton_d scale_fill_canton_c scale_fill_canton_d |
| Create a figure export preset | figure_preset |
| Check whether a plotting font is available | fontcheck |
| List available font families | fontlist |
| Return a Canton colour palette | hue |
| Save plots in one or more image formats | imagesave |
| Create directories | mkdir |
| Return the current working directory | pwd |
| Compatibility helper for scoped font settings | resetfont |
| Configure a font locally | setfont |
| A publication-oriented ggplot2 theme | theme_canton |
| Load multiple packages quietly | using |