私の質問は私の前の質問に関連しています。
入力ファイルに中国語の名前を含む棒グラフをプロットする方法は?
PDFに漢字をプロットする必要があります。
mydata = matrix( c( 2:6, c( 2,4,2,6,3 ) ), nrow= 2 )
mylabs = c( "木材", "表", "笔", "垃圾桶", "杯" )
barplot( mydata, beside=T, horiz= "T", names.arg= mylabs, las= 1, col= c( "red", "blue" ) )
pdf( "plotname.pdf" )
barplot( mydata, beside=T, horiz= "T", names.arg= mylabs, las= 1, col= c( "red", "blue" ) )
dev.off()
しかし、pdf のみでは .... 中国語の名前の代わりに印刷されます。
よろしく