From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>

Date: Fri 24 Feb 2006 - 05:22:30 EST

Date: Fri 24 Feb 2006 - 05:22:30 EST

"michael watson (IAH-C)" <michael.watson@bbsrc.ac.uk> writes:

*> Hi
**>
*

> Hopefully this one isn't in the manual or I am about to get shot :-S

*Kapow*... [1]

> One of my colleagues wants a slightly strange graph. We basically have

*> a data matrix, and she wants to plot, for each row, the values in the
**> row as points on the graph. The following code draws the graph just
**> fine:
**>
**> plot(row(d)[,3:9],d[,3:9])
**>
**> So as there are 12 rows in my matrix, there are 12 columns of points,
**> which is what she wants.
**>
**> However, she wants the x-axis labelled with the row names, not with
**> 1,2,3,4,5 etc
**>
**> I can figure out from reading par() how to turn off the default drawing
**> of the numeri cal labels, but how do I use the row names instead?
*

axis(1, at=1:12, labels=rownames(d))

[1] Look e.g. at the examples section in plot.default.

-- O__ ---- Peter Dalgaard ุster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlReceived on Fri Feb 24 07:00:37 2006

*
This archive was generated by hypermail 2.1.8
: Fri 24 Feb 2006 - 09:08:58 EST
*