ここに載っているコードをその通りに入力しても、日本語部分が文字化けします。
image_annotate()を使うと、必ず日本語部分が文字化けし、どんな方法を用いても治りません、どうすればいいのでしょうか、
ソフトは、R 386とRstudioを使っています。
今使えるフォントは以下のようです、
> iconvlist() [1] "437" "850" [3] "852" "855" [5] "857" "860" [7] "861" "862" [9] "863" "865" [11] "866" "869" [13] "ANSI_X3.4-1968" "ANSI_X3.4-1986" [15] "ASCII" "ASMO-708" [17] "BIG-5" "BIG-FIVE" [19] "big5" "BIG5" [21] "big5-hkscs" "BIG5-HKSCS" [23] "big5hkscs" "BIG5HKSCS" [25] "CP-GR" "CP-IS" [27] "cp1025" "CP1125" [29] "CP1133" "CP1200" [31] "CP12000" "CP12001" [33] "CP1201" "CP1250" [35] "CP1251" "CP1252" [37] "CP1253" "CP1254" [39] "CP1255" "CP1256" [41] "CP1257" "CP1258" [43] "CP1361" "CP154" [45] "CP367" "CP437" [47] "CP50221" "CP51932" [49] "CP65001" "CP737" [51] "CP775" "CP819" [53] "CP850" "CP852" [55] "CP853" "CP855" [57] "CP857" "CP858" [59] "CP860" "CP861" [61] "CP862" "CP863" [63] "CP864" "CP865" [65] "cp866" "CP866" [67] "CP869" "CP874" [69] "cp875" "CP932" [71] "CP936" "CP949" [73] "CP950" "CSASCII" [75] "CSIBM855" "CSIBM857" [77] "CSIBM860" "CSIBM861" [79] "CSIBM863" "CSIBM864" [81] "CSIBM865" "CSIBM866" [83] "CSIBM869" "csISO2022JP" [85] "CSISOLATIN1" "CSPC775BALTIC" [87] "CSPC850MULTILINGUAL" "CSPC862LATINHEBREW" [89] "CSPC8CODEPAGE437" "CSPCP852" [91] "CSPTCP154" "CSWINDOWS31J" [93] "CYRILLIC-ASIAN" "DOS-720" [95] "DOS-862" "EUC-CN" [97] "euc-jp" "euc-kr" [99] "EUC-KR" "EUCCN" [101] "eucjp" "euckr" [103] "GB18030" "gb2312" [105] "GBK" "hz-gb-2312" [107] "IBM-CP1133" "IBM-Thai" [109] "IBM00858" "IBM00924" [111] "IBM01047" "IBM01140" [113] "IBM01141" "IBM01142" [115] "IBM01143" "IBM01144" [117] "IBM01145" "IBM01146" [119] "IBM01147" "IBM01148" [121] "IBM01149" "IBM037" [123] "IBM1026" "IBM273" [125] "IBM277" "IBM278" [127] "IBM280" "IBM284" [129] "IBM285" "IBM290" [131] "IBM297" "IBM367" [133] "IBM420" "IBM423" [135] "IBM424" "IBM437" [137] "IBM437" "IBM500" [139] "ibm737" "ibm775" [141] "IBM775" "IBM819" [143] "ibm850" "IBM850" [145] "ibm852" "IBM852" [147] "IBM855" "IBM855" [149] "ibm857" "IBM857" [151] "IBM860" "IBM860" [153] "ibm861" "IBM861" [155] "IBM862" "IBM863" [157] "IBM863" "IBM864" [159] "IBM864" "IBM865" [161] "IBM865" "IBM866" [163] "ibm869" "IBM869" [165] "IBM870" "IBM871" [167] "IBM880" "IBM905" [169] "iso-2022-jp" "iso-2022-jp" [171] "ISO-2022-JP" "ISO-2022-JP-MS" [173] "iso-2022-kr" "ISO-8859-1" [175] "iso-8859-13" "iso-8859-15" [177] "iso-8859-2" "iso-8859-3" [179] "iso-8859-4" "iso-8859-5" [181] "iso-8859-6" "iso-8859-7" [183] "iso-8859-8" "iso-8859-8-i" [185] "iso-8859-9" "ISO-IR-100" [187] "ISO-IR-6" "ISO_646.IRV:1991" [189] "iso_8859-1" "ISO_8859-1" [191] "ISO_8859-1:1987" "iso_8859-13" [193] "iso_8859-15" "iso_8859-2" [195] "iso_8859-3" "iso_8859-4" [197] "iso_8859-5" "iso_8859-6" [199] "iso_8859-7" "iso_8859-8" [201] "iso_8859-8-i" "iso_8859-9" [203] "iso_8859_1" "iso_8859_13" [205] "iso_8859_15" "iso_8859_2" [207] "iso_8859_3" "iso_8859_4" [209] "iso_8859_5" "iso_8859_6"
日本語フォントはありますでしょうか・・・。書ききれないので、投稿します。
内容は良く分かっていないが、fontはインストールされているのだろうか。
fontの設定はどうなっているのだろう。
Noto Serif JPであれば日本語は使えそうだが、
Noto Serifだと日本語は使えないと思うのだけれど。
font = "Noto Serif JP",
としても無理でした、インストールしてないからでしょうか?
フォントがインストールされてないと表示できないと思う。
たぶん日本語のフォントが入っていないのかと。
サイトの日本語表示例のフォントをダウンロードしてから再度聞いてみては。
フォントのDLってRでどうやるんでしょうか・・・
フォントのインストールはOS毎に定められた手順で進めるんですよ。Rは関係ない。
すでに装備されているフォントでできませんかね?日本語表示。
なんか無理っぽいんですが・・・フォントどうこうでは。
> iconvlist()したフォント一覧には入ってませんでした・・・。
ちなみに、フォントのインストールは「できません」
理由は、「以前のpcでライセンス認証してなかったからこれもできない、新しいのを買え」とのことです。
フォント、続きです。
[211] "iso_8859_7" "iso_8859_8"
[213] "iso_8859_8-i" "iso_8859_9"
[215] "ISO2022-JP" "ISO2022-JP-MS"
[217] "iso2022-kr" "ISO646-US"
[219] "iso8859-1" "ISO8859-1"
[221] "iso8859-13" "iso8859-15"
[223] "iso8859-2" "iso8859-3"
[225] "iso8859-4" "iso8859-5"
[227] "iso8859-6" "iso8859-7"
[229] "iso8859-8" "iso8859-8-i"
[231] "iso8859-9" "Johab"
[233] "JOHAB" "koi8-r"
[235] "koi8-u" "ks_c_5601-1987"
[237] "L1" "latin-9"
[239] "LATIN1" "latin2"
[241] "latin3" "latin4"
[243] "latin5" "latin7"
[245] "latin9" "mac"
[247] "mac-centraleurope" "mac-is"
[249] "macarabic" "maccentraleurope"
[251] "maccroatian" "maccyrillic"
[253] "macgreek" "machebrew"
[255] "maciceland" "macintosh"
[257] "macis" "macroman"
[259] "macromania" "macthai"
[261] "macturkish" "macukraine"
[263] "macukrainian" "MS-ANSI"
[265] "MS-ARAB" "MS-CYRL"
[267] "MS-EE" "MS-GREEK"
[269] "MS-HEBR" "MS-TURK"
[271] "MS50221" "MS51932"
[273] "MS932" "MS936"
[275] "PT154" "PTCP154"
[277] "SHIFFT_JIS" "SHIFFT_JIS-MS"
[279] "shift-jis" "shift_jis"
[281] "SJIS" "SJIS-MS"
[283] "SJIS-OPEN" "SJIS-WIN"
[285] "UCS-2" "UCS-2BE"
[287] "UCS-2LE" "UCS-4"
[289] "UCS-4BE" "UCS-4BE"
[291] "UCS-4LE" "UCS-4LE"
[293] "UCS2" "UCS2BE"
[295] "UCS2LE" "UCS4"
[297] "UCS4BE" "UCS4LE"
[299] "UHC" "unicodeFFFE"
[301] "US" "US-ASCII"
[303] "UTF-16" "UTF-16BE"
[305] "UTF-16LE" "UTF-32"
[307] "UTF-32BE" "UTF-32LE"
[309] "UTF-8" "UTF16"
[311] "UTF16BE" "UTF16LE"
[313] "UTF32" "UTF32BE"
[315] "UTF32LE" "UTF8"
[317] "WINBALTRIM" "windows-1250"
[319] "windows-1251" "windows-1252"
[321] "windows-1253" "windows-1254"
[323] "windows-1255" "windows-1256"
[325] "windows-1257" "windows-1258"
[327] "WINDOWS-31J" "WINDOWS-50221"
[329] "WINDOWS-51932" "windows-874"
[331] "WINDOWS-932" "WINDOWS-936"
[333] "x-Chinese_CNS" "x-cp20001"
[335] "x-cp20003" "x-cp20004"
[337] "x-cp20005" "x-cp20261"
[339] "x-cp20269" "x-cp20936"
[341] "x-cp20949" "x-cp50227"
[343] "x-EBCDIC-KoreanExtended" "x-Europa"
[345] "x-IA5" "x-IA5-German"
[347] "x-IA5-Norwegian" "x-IA5-Swedish"
[349] "x-iscii-as" "x-iscii-be"
[351] "x-iscii-de" "x-iscii-gu"
[353] "x-iscii-ka" "x-iscii-ma"
[355] "x-iscii-or" "x-iscii-pa"
[357] "x-iscii-ta" "x-iscii-te"
[359] "x-mac-arabic" "x-mac-ce"
[361] "x-mac-chinesesimp" "x-mac-chinesetrad"
[363] "x-mac-croatian" "x-mac-cyrillic"
[365] "x-mac-greek" "x-mac-hebrew"
[367] "x-mac-icelandic" "x-mac-japanese"
[369] "x-mac-korean" "x-mac-romanian"
[371] "x-mac-thai" "x-mac-turkish"
[373] "x-mac-ukrainian" "x_Chinese-Eten"
なんか、フォント色々変えたんですが、一切変化ないですね・・・。
何がしたいのか知りませんが、とりあえずiconvlist()はフォントとは何も関係ありません。
https://dg-workspace.net/archives/830
ググればフォントのダウンロード方法は出てくる。
とりあえずダウンロードして、フォントインストールしてからじゃないか?
なんか、Windowsのライセンスの問題でドラッグドロップできず、インストールできないんです、
詰みですかね?
あなたの回答
tips
プレビュー