font_rescale: Rescale the font to fit inside the circle packings

Description Usage Arguments Value Examples

View source: R/font-helpers.R

Description

Rescale the font to fit inside the circle packings

Usage

1
font_rescale(font_df, circle_df, prop = 0.8)

Arguments

font_df

font created by glyph()

circle_df

circle packing data frame with create_circle_plate()

prop

proportion of the circle size to cover. Default is 0.8

Value

rescaled font to cover the proportion of the height of the circle

Examples

1
2
3
letter_s <- glyph("s")
circle_plate <- create_circle_plate()
letter_s_bigger <- font_rescale(letter_s, circle_plate)

njtierney/ishihara documentation built on May 31, 2020, 9:01 a.m.