Expand description
Physical output sizes (#527): a chart for a document is sized in cm, mm,
inches or points, as ggsave does, instead of in pixels.
The chart is laid out in points (1/72 in): the canvas is the physical
size in points, and every theme size (base_size, text, line widths) is
read as points. Vector output carries the physical size (SVG width="16cm"
over a viewBox in points; a PDF page of that size). Raster output draws
the same layout at dpi / 72 pixels per point, so doubling the dpi
doubles the pixels and keeps the text at its printed size.
A bare number, or one in px, is a pixel size: the layout in pixels as
before (text sizes then read as pixels).
Structs§
- Length
- A length with its unit:
16cm,6.3in,160mm,450pt,800pxor a bare800(pixels). - Physical
Size - An output size: width, height and, for raster output, the dpi.
Enums§
- Unit
- A length’s unit.