Japanese              package:grDevices              R Documentation

_J_a_p_a_n_e_s_e _c_h_a_r_a_c_t_e_r_s _i_n _R

_D_e_s_c_r_i_p_t_i_o_n:

     The implementation of Hershey vector fonts provides a large number
     of Japanese characters (Hiragana, Katakana, and Kanji).

_D_e_t_a_i_l_s:

     Without keyboard support for typing Japanese characters, the only
     way to produce these characters is to use special escape
     sequences: see 'Hershey'.

     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_e_f_e_r_e_n_c_e_s:

     <URL: http://www.gnu.org/software/plotutils/plotutils.html>

_S_e_e _A_l_s_o:

     'demo(Japanese)', 'Hershey', 'text'

_E_x_a_m_p_l_e_s:

     require(graphics)

     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, "\\#J2438\\#J2421\\#J2451\\#J2473", vfont = Vf)
     text(4, 4, "\\#J2538\\#J2521\\#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")

