[R] Changing the x-axis labels in plot()
Berton Gunter
gunter.berton at gene.com
Thu Feb 23 17:34:15 CET 2006
Please learn how to use R's extensive Help capabilities -- It **is** in the
"manual" -- and also in the R-help archives.
help.search('axis') (obvious keyword, no?) will get you what you want.
-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of
> michael watson (IAH-C)
> Sent: Thursday, February 23, 2006 7:35 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Changing the x-axis labels in plot()
>
> Hi
>
> Hopefully this one isn't in the manual or I am about to get shot :-S
>
> 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 numerical labels, but how do I use the row names instead?
>
> Thanks
> Mick
>
> ______________________________________________
> R-help at 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.html
>
More information about the R-help
mailing list