as_grid_size: Turn a 'loon' size to a 'grid' size

View source: R/as_grid_size.R

as_grid_sizeR Documentation

Turn a loon size to a grid size

Description

The size of loon is determined by pixel (px), while, in grid graphics, the size is determined by pointsize (pt)

Usage

as_grid_size(
  size,
  type = c("points", "texts", "images", "radial", "parallel", "polygon", "lines"),
  adjust = 1,
  ...
)

Arguments

size

input loon size

type

glyph type; one of "points", "texts", "images", "radial", "parallel", "polygon", "lines".

adjust

a pixel (px) at 96DPI (dots per inch) is equal to 0.75 point. However, for different machines, the DPI is slightly different. Argument adjust is used to twist the size. IT IS A HACK and should be removed in the later version.

...

some arguments used to specify the size, e.g. pch for "points", ratio for "image" and p for "parallel".


loon documentation built on July 9, 2023, 5:48 p.m.