[R] label X-Axis by abother variable in R plot
Zhiliang Ma
zma at jhu.edu
Mon Aug 10 07:57:10 CEST 2009
plot(b, c, xaxt="n")
axis(1, at=b, labels=as.character(a))
On Sun, Aug 9, 2009 at 9:33 PM, Frank Zhang<frankyuzhang at yahoo.com> wrote:
>
> Hi,
>
> I would like to plot b, c in one plot, and use a as x-aix. How could I do that? Thanks
>
> a, b, c,
> 20, 2, 3
> 21, 4, 5
> 22, 1, 2
> 24, 3, 5
> 50, 3, 6
>
>
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
More information about the R-help
mailing list