Package: papersize 0.1.0.9001

papersize: Sizing Plots and Files for Paper

A set of convenience functions extending grid, ggplot2, and patchwork to help you size plots and files for printing to paper, postcards, playing cards, and other physical media.

Authors:Eli Pousson [aut, cre, cph]

papersize_0.1.0.9001.tar.gz
papersize_0.1.0.9001.zip(r-4.5)papersize_0.1.0.9001.zip(r-4.4)papersize_0.1.0.9001.zip(r-4.3)
papersize_0.1.0.9001.tgz(r-4.4-any)papersize_0.1.0.9001.tgz(r-4.3-any)
papersize_0.1.0.9001.tar.gz(r-4.5-noble)papersize_0.1.0.9001.tar.gz(r-4.4-noble)
papersize_0.1.0.9001.tgz(r-4.4-emscripten)papersize_0.1.0.9001.tgz(r-4.3-emscripten)
papersize.pdf |papersize.html
papersize/json (API)
NEWS

# Install 'papersize' in R:
install.packages('papersize', repos = c('https://elipousson.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/elipousson/papersize/issues

Datasets:

On CRAN:

41 exports 3 stars 0.91 score 8 dependencies 1 dependents 3 scripts

Last updated 6 months agofrom:12db7c6bee. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 30 2024
R-4.5-winNOTEAug 30 2024
R-4.5-linuxNOTEAug 30 2024
R-4.4-winNOTEAug 30 2024
R-4.4-macNOTEAug 30 2024
R-4.3-winNOTEAug 30 2024
R-4.3-macNOTEAug 30 2024

Exports:as_aspas_dist_unitsas_pageas_unitas_unit_typeconvert_dist_scaleconvert_dist_unitsconvert_page_unitsconvert_unit_typeget_cardget_dist_unitsget_marginget_page_dimsget_page_sizeget_paperget_scaleget_social_sizeggsave_extggsave_socialinset_page_elementis_dist_unitsis_marginis_same_unit_typeis_same_unitsis_unit_typemake_contact_sheetsmake_page_sizemap_ggsave_extmarginmarginspage_layoutpage_to_layoutpage_to_viewportplot_cardsprint_to_pageprint_to_page_layoutset_page_aspset_page_dimsset_page_marginset_page_orientationtheme_page

Dependencies:clicliExtrasgluelifecycleRcpprlangunitsvctrs

Readme and manuals

Help Manual

Help pageTopics
Area units (vector)area_unit_options
Convert character string, page name, or page data.frame to numeric aspect ratioas_asp
Coerce a character or named vector to a page data.frame using get_page_size() or make_page_size()as_page
Helper functions for grid unitsas_unit as_unit_type convert_unit_type is_same_unit_type is_unit_type
Standard card sizescard_sizes
Convert distance from scale to actual unitsconvert_dist_scale
Convert distance (and area) values between different unitsconvert_dist_units
Distance units (vector)dist_unit_options
Distance units (data frame)dist_units
Get a paper or card size based on name, dimensions, orientation, or typeconvert_page_units get_card get_page_dims get_page_size get_paper
Get standard scales and convert to scale distancesget_scale get_standard_scale
Get social media image size to match platform and formatget_social_size
Save a ggplot2 plot to file and update file EXIF metadataggsave_ext ggsave_social map_ggsave_ext
Grid units (vector)grid_units
Create an inset with page size dimensions be added on top of the previous plotinset_page_element
General utility functions for working with distance units objectsas_dist_units get_dist_units is_dist_units is_same_units
Use 'magick::image_ggplot()' to make contact sheets for imagesmake_contact_sheets
Make a page size data framemake_page_size
Specify the margins of a page or elementget_margin is_margin margin margins
Extra reference data for page layoutspage_extras
Use patchwork to lay out a list of fixed aspect plots on a larger pagelayout_cards page_layout
Convert a page size data.frame to a Grid layout objectpage_to_layout
Convert a page data.frame to a 'viewport' class objectpage_to_viewport
Standard paper and image sizespaper_sizes
Use ggplot to plot for one or more cardsplot_cards
Explicitly draw plot using dimensions from page data.frame or listprint_to_page print_to_page_layout
Set page data.frame dimensions, orientation, or aspect ratioset_page_asp set_page_dims set_page_orientation
Set margins for page data.frame (adding body width, height, and asp)set_page_margin
Standard map, architectural, and engineering scalesstandard_scales
Modify plot aspect ratio to match a page sizetheme_page