as_grid_size {loon}R 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".


[Package loon version 1.4.1 Index]