Skip to content
Back to formatted view

Raw Message

Message-ID: <fb7c7e870809010817h542c86c2u542dbfab8560d367@mail.gmail.com>
Date: 2008-09-01T15:17:35Z
From: Rainer M Krug
Subject: linebreak in mathematical anotation?

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

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa