gen_charmap | R Documentation |
Generate a set of control points for a collection of glyphs mapped to characters. This initial map is then modified by merging n glyphs into one and adding jitter.
gen_charmap(
seed,
n = 26,
n_control = 4,
n_tall = 4,
size_tall = 4,
n_merge = 3,
n_variation = 10,
jitter = 1/5,
scale = 0.5,
rotation = -pi/6,
sp = TRUE
)
seed |
random seed for the character map. |
n |
number of letters in the character map. The total length of the character map is n + 3 (addition of ".", ",", "?") |
n_control |
number of control points for each glyph |
n_tall |
number of tall glyphs |
size_tall |
radius of the set of control points for tall glyphs |
n_merge |
number of glyphs concatenated in the modified map |
n_variation |
number of variations of each glyphs in the map |
jitter |
amount of jitter added to each variations |
scale , rotation |
scale (0-1) and rotation (radian) of the set of control points |
sp |
add a blank glyph corresponding to whitespace character |
a list-column dataframe with a character and layout column (set of control points).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.