Plotting Euro Symbol € in ggplot2?

后端 未结 2 1745
伪装坚强ぢ
伪装坚强ぢ 2020-12-19 17:27

Euro Symbol is shown as ... at PDF output

ggplot() + theme_bw() + geom_line() + scale_y_continuous(formatter = \"euro\")
<         


        
2条回答
  •  青春惊慌失措
    2020-12-19 18:13

    Use ISOLatin9.enc encoding when starting PDF graphics

    pdf(encoding = "ISOLatin9.enc")
    

    At http://stat.ethz.ch/R-manual/R-patched/library/graphics/html/text.html is said that euro symbol can selecting ISO-8895-15 (Latin-9) which has the Euro as character

提交回复
热议问题