在ggplot2中绘制欧元符号€? [英] Plotting Euro Symbol € in ggplot2?

查看:166
本文介绍了在ggplot2中绘制欧元符号€?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

欧元符号在PDF输出中显示为 ...

  ggplot()+ theme_bw()+ geom_line()+ scale_y_continuous(formatter =euro)


解决方案

在启动PDF图形时使用 ISOLatin9.enc 编码

  pdf(encoding =ISOLatin9.enc)

http ://stat.ethz.ch/R-manual/R-patched/library/graphics/html/text.html 据说欧元符号可以选择ISO-8895-15(Latin-9)欧元作为字符


Euro Symbol is shown as ... at PDF output

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

解决方案

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

这篇关于在ggplot2中绘制欧元符号€?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆