Skip to content

linebreak in mathematical anotation?

4 messages · Henrique Dallazuanna, Rainer M Krug

#
Hi

I am using mathematical anotation to make the labels in a barplot in
italics. as an example (adapted from
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/129808.html):

tt <- c("italic(First~~set)", "italic(Second~~set)", "italic(third~~set")
barplot(1:3, names.arg=parse(text=tt))

But I would like to have it with "set" in a second column, like

tt <- c("First\nset", "Second\nset", "third\nset")
barplot(1:3, names.arg=tt)

only in italics. Is this possible?

Thanks

Rainer
#
On Mon, Sep 1, 2008 at 5:22 PM, Henrique Dallazuanna <wwwhsd at gmail.com> wrote:
Thanks a lot - that is exactly what I was looking for

Rainer

  
    
#
On Mon, Sep 1, 2008 at 5:26 PM, Rainer M Krug <r.m.krug at gmail.com> wrote:
Just one additional query: is it possible to have the italics centered
(like in the non-italic example)?