how to put Angstrom symbol on x (or y) axis?

883 views
Skip to first unread message

Murpholino Peligro

unread,
Sep 5, 2010, 4:16:20 PM9/5/10
to ggplot2
I've been looking...but only came up
with

qplot (uno,dos, ylab="{Angstroms}")
qplot (uno,dos, ylab="{\350}") #but it seems only works with latin1
encoding...which I think I don't have it (How can I be sure of that?
working with Ubuntu..and everything works with utf8 or utf8x...)


and something like
qplot(uno,dos, ylab= bquote(A^o)) which is not really helpful...(works
fine with greek letters)

any ideas?


thanks a lot!!!

James Howison

unread,
Sep 5, 2010, 5:42:05 PM9/5/10
to ggplot2
qplot(uno, dos) + ylab(expression(ring(A)))

Checkout ?plotmath

Found this via:

http://tolstoy.newcastle.edu.au/R/e6/help/09/03/9125.html

--J

> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2

Murpholino Peligro

unread,
Sep 14, 2010, 9:30:51 PM9/14/10
to ggplot2
ok.
that works
thanks
....btw

how about squared angstroms?

Murpholino Peligro

unread,
Sep 14, 2010, 9:47:27 PM9/14/10
to ggplot2
Ok...I experiment...and finally got it!

qplot(tiempo, a_6ajl2, data=ener, ylab=expression(paste("Angstroms ",
(ring(A)^2))))


:D
thanks anyway

Mark Connolly

unread,
Sep 15, 2010, 8:14:29 AM9/15/10
to Murpholino Peligro, ggplot2
I use one of the little ch�racter map applications to copy and paste
unicode characters not mapped on my keyboard. The applications
typically bundled with Linux and Windows (under Accessories) include
search capability (search on angstrom, for example).
Reply all
Reply to author
Forward
0 new messages