[R] graphic problems with special characters
John Kane
jrkrideau at inbox.com
Thu Jun 7 15:24:51 CEST 2012
I think we need some data and code. Would you please provide some sample data (see ?dput for a handy way to provide data) and some working code that demonstrates the problem?
John Kane
Kingston ON Canada
> -----Original Message-----
> From: leray.guillaume at gmail.com
> Sent: Thu, 7 Jun 2012 11:48:53 +0200
> To: r-help at r-project.org
> Subject: [R] graphic problems with special characters
>
> Hi,
>
> I am actually working on some auto-routine to import XML file, run some
> analysis on them and create graph as jpeg. The files are in different
> language french/english/danish even chinese. At the moment I'm focusing
> on
> the European language. I import them using the XML package and specify
> encoding="UTF-8" which seems to work pretty well when I write the text
> in
> the console, the danish characters f e x are printed correctly.
>
> The problem raises when I write these characters in graphics generated
> with
> jpeg(), then the name of the files and the text/title of the graphics are
> not written correctly. I am completely ignorant in encoding text in R
> and
> I tried my best to find some information on internet I can understand and
> re-use to fix my problem but it has been unsuccessful until now.
>
> My configuration is the following :
>
> R version 2.13.1
> Microsoft windows XP professional version 2002 with service pack 3
>
> best regards,
>
> Guillaume Le Ray
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
More information about the R-help
mailing list