[R] Labelling x axis in plot function

Jim Lemon jim at bitwrit.com.au
Wed Dec 5 05:25:32 CET 2012


On 12/05/2012 04:24 AM, T Bal wrote:
> Hi,
> In the plot function I want to label x axis as the numbers between 1 and 12
> (so 1, 2, 3, 4, 5, ..., 12). How should I do it? The range of x values are
> different than this range. Thanks!
>
Hi T Bal,
You are probably troubled by missing labels. Try the staxlab (plotrix) 
function after adding xaxt="n" to your plot call`.

Jim




More information about the R-help mailing list