Skip to contents

Plot kanjimat object

Usage

# S3 method for kanjimat
plot(
  x,
  mode = c("dark", "light"),
  col = gray(seq(0, 1, length.out = 256)),
  ...
)

Arguments

x

object of class kanjimat.

mode

character string. If "dark" the original grayscale values are used, if "light" they are inverted. With the default grayscale color scheme the kanji is plotted white-on-black for "dark" and black-on-white for "light".

col

a vector of colors. Typically 256 values are enough to keep the full information of an (antialiased) kanjimat object.

...

further parameters passed to image.

Value

No return value, called for side effects.