emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: [Babel][R] Non-ascii characters in R plots
Date: Sun, 19 Aug 2012 16:36:12 +0200	[thread overview]
Message-ID: <5030F9DC.6040200@christianmoe.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 847 bytes --]


When I the following example source block in Org I get a plot in which 
the non-ascii characters are replaced by double dots (namely, the 
degree sign in `degrees C' and the `Å' in `År', Norwegian for `Year').

#+begin_src R :results graphics :file 
~/Desktop/testplot-with-Babel.png :width 480 :height 360
   temp <- c(15, 17, 16, 19, 17, 18)
   year <- c(2000:2005)
   plot(year, temp, xlab="År", ylab="°C")

It seems to be a Babel problem, since, R is working fine; the special 
characters are preserved when I run the same script from the R command 

Compare the attached testplot-with-Babel.png and testplot.png.

I'm running up-to-date Org on GNU Emacs 24.1 compiled for Mac OS 
10.6.8. My .emacs sets current-language-environment to "UTF-8".

Is this a bug, or is there a setting I should know about?


[-- Attachment #2: testplot.png --]
[-- Type: image/png, Size: 8538 bytes --]

[-- Attachment #3: testplot-with-Babel.png --]
[-- Type: image/png, Size: 8335 bytes --]

             reply	other threads:[~2012-08-19 15:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-19 14:36 Christian Moe [this message]
     [not found] ` <87vcgeigyw.fsf@gmx.com>
2012-08-20  8:23   ` [Babel][R] Non-ascii characters in R plots Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5030F9DC.6040200@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).