get_strokes_compo {kanjistat} | R Documentation |
Get the strokes of a specific component of a kanjivec object
Description
The strokes are the leaves of the kanjivec stroketree
. They consist of
a two-column matrix giving a discretized path for the stroke in the unit square [0,1]^2
with further attributes.
Usage
get_strokes_compo(kvec, which = c(1, 1))
Arguments
kvec |
an object of class |
which |
a vector of length 2 specifing the index of the component, i.e. the component used
is |
Value
A list of strokes with attributes.
See Also
Examples
kanji <- fivebetas[[5]]
# get the three strokes of the component\u2ed6 in \u9663
rad <- get_strokes_compo(kanji, c(2,1))
plot(0.5, 0.5, xlim=c(0,1), ylim=c(0,1), type="n", asp=1, xaxs="i", yaxs="i", xlab="", ylab="")
invisible(lapply(rad, lines, lwd=4))
[Package kanjistat version 0.14.1 Index]