[S] Newbie question about orienting labels

Suresh Srinivasan (suresh@nlm.nih.gov)
Wed, 11 Mar 1998 13:08:17 -0500

Hi all,

I want a barplot with x axis labels that are categorical
and I want these to be printed orthogonal to the x-axis.

Given the following,

y <- c(1, 2, 3)
x <- c("foo", "bar", "baz")
barplot(y, names=x)

produces the plot I want but I would like the labels to
be oriented perpendicular to the axis. The "las=2" option
does not apparently work for named labels.

I tried making the x variable a factor..

xf <- factor(x)
barplot(y, xf)

but this does not show the labels.

We are running S-PLUS for UNIX version 3.3.

Thanks for any advice.

This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news