Re: [R] X and Y axis labels on a barplot

2009-05-06 Thread Steve Murray
Thanks Jim, that's great. Based on the information in the previous messages, is it possible to change the y-axis as I'd hoped? Thanks again, Steve _ [[elided Hotmail spam]] __ R-help@r-

Re: [R] X and Y axis labels on a barplot

2009-05-06 Thread jim holtman
This will put the years on the plot: barplot(total_sums, beside=TRUE, col=(2:3), las=2, names.arg=1986:1995) On Wed, May 6, 2009 at 10:03 AM, Steve Murray wrote: > > > dput(total_sums) > structure(c(17722202.6898231, 15276602.215475, 16875888.5155229, > 14086271.625756, 18626581.9628846, 153877

Re: [R] X and Y axis labels on a barplot

2009-05-06 Thread Steve Murray
> dput(total_sums) structure(c(17722202.6898231, 15276602.215475, 16875888.5155229, 14086271.625756, 18626581.9628846, 15387747.481166, 18428414.8535184, 15560882.404998, 17611181.5207881, 14905453.195546, 17290016.3934661, 14939493.120707, 16819288.8227961, 13979000.614402, 17657959.3656573,

Re: [R] X and Y axis labels on a barplot

2009-05-06 Thread Steve Murray
A very reasonable request! Sorry for not doing this initially, but please find below the data I am trying to plot: > total_sums sums86 sums87 sums88 sums89 sums90 sums91 sums92 Sim_1986 17722203 16875889 18626582 18428415 17611182 17290016 16819289 X198615276602 140862

[R] X and Y axis labels on a barplot

2009-05-06 Thread Steve Murray
Dear all, I have produced a barplot and wish to alter the axes a little. In place of the variable names appearing on the x-axis, I'd like to have the numbers 1986 to 1995. I have tried using the argument xlim=c(1986,1995) in the barplot command but receive: "Error in plot.window(xlim, ylim, lo