The implementation of Hershey vector fonts provides a large number of
Japanese characters (Hiragana, Katakana, and Kanji).
Without keyboard support for typing Japanese characters, the only way
to produce these characters is to use special escape sequences: see
For example, the Hiragana character for the sound "ka" is produced
by \#J242b and the Katakana character for this sound is
produced by \#J252b. The Kanji ideograph for "one" is
produced by \#J306c or \#N0001.
The output from demo(Japanese) shows tables of the escape
sequences for the available Japanese characters.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> png(filename="/home/ddbj/snapshot/RGM3/R_rel/result/grDevices/Japanese.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Japanese
> ### Title: Japanese characters in R
> ### Aliases: Japanese
> ### Keywords: aplot
> ### ** Examples
> plot(1:9, type = "n", axes = FALSE, frame = TRUE, ylab = "",
+ main = "example(Japanese)", xlab = "using Hershey fonts")
> par(cex = 3)
> Vf <- c("serif", "plain")
> text(4, 2, "\#J244b\#J245b\#J2473", vfont = Vf)
> text(4, 4, "\#J2538\#J2563\#J2551\#J2573", vfont = Vf)
> text(4, 6, "\#J467c\#J4b5c", vfont = Vf)
> text(4, 8, "Japan", vfont = Vf)
> par(cex = 1)
> text(8, 2, "Hiragana")
> text(8, 4, "Katakana")
> text(8, 6, "Kanji")
> text(8, 8, "English")
Created & Maintained by Osamu Ogasawara (email@example.com) and