Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plotting Euro Symbol € in ggplot2?

Tags:

r

ggplot2

euro

Euro Symbol is shown as ... at PDF output

ggplot() + theme_bw() + geom_line() + scale_y_continuous(formatter = "euro")
like image 820
juanmah Avatar asked Jul 15 '11 11:07

juanmah


People also ask

How do I type the euro € symbol?

Inserting the euro symbol using an Alt keyboard shortcut Position the cursor where you want to insert the euro symbol. Press and hold Alt + 0128 on the numeric keypad.

Do you put the € at the front or the end?

If you are writing out an amount in euros, use the currency symbol or euro sign € . Note that the symbol € goes before the amount and that there is no space between them (e.g. € 50).

Where do you put the € sign?

In Statistics Explained articles the symbol '€' should be used for euro in the text if it is followed by a number. This applies also to graphs and tables. It should be placed before the figure: €30.

How do you write euros in latex?

Euro is official currency of the European Union, denoted by the € symbol. By default \texteuro command is used to represent this symbol in latex.


1 Answers

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

like image 140
juanmah Avatar answered Sep 28 '22 09:09

juanmah