Re: [R] Plotting pairs of bars

2009-05-06 Thread Jim Lemon
Steve Murray wrote: Jim and all, Thanks for the suggestion, however, I get the following error: barplot(t(combine86[,1:2], beside = TRUE, las = 1)) Error in t(combine86[, 1:2], beside = TRUE, las = 1) : unused argument(s) (beside = TRUE, las = 1) I've looked up ?t and cannot see a

Re: [R] Plotting pairs of bars

2009-05-06 Thread Ben Bolker
Steve Murray-3 wrote: > > > Jim and all, > > Thanks for the suggestion, however, I get the following error: > >> barplot(t(combine86[,1:2], beside = TRUE, las = 1)) > Error in t(combine86[, 1:2], beside = TRUE, las = 1) : > unused argument(s) (beside = TRUE, las = 1) > > I've looked up ?

Re: [R] Plotting pairs of bars

2009-05-06 Thread Steve Murray
Jim and all, Thanks for the suggestion, however, I get the following error: > barplot(t(combine86[,1:2], beside = TRUE, las = 1)) Error in t(combine86[, 1:2], beside = TRUE, las = 1) : unused argument(s) (beside = TRUE, las = 1) I've looked up ?t and cannot see any extra arguments that I sho

Re: [R] Plotting pairs of bars

2009-05-06 Thread Jim Lemon
Steve Murray wrote: Thanks for the reply - the 'beside' argument certainly looks useful, although I'm still not getting the output I'd hoped for. By doing: barplot(combine86[,1:2], beside = TRUE, las = 1, xlab=rownames(combine86)) ...I get all the bars for the 'Sim Mean' column plotted on the

Re: [R] Plotting pairs of bars

2009-05-06 Thread Steve Murray
Thanks for the reply - the 'beside' argument certainly looks useful, although I'm still not getting the output I'd hoped for. By doing: barplot(combine86[,1:2], beside = TRUE, las = 1, xlab=rownames(combine86)) ...I get all the bars for the 'Sim Mean' column plotted on the left side of the gra

Re: [R] Plotting pairs of bars

2009-05-05 Thread Greg Snow
Of Steve Murray > Sent: Tuesday, May 05, 2009 9:52 AM > To: r-help@r-project.org > Subject: [R] Plotting pairs of bars > > > Dear all, > > I have a matrix called combine86 which looks as follows: > > > combine86 > Sim Mean Obs Mean Sim Su

[R] Plotting pairs of bars

2009-05-05 Thread Steve Murray
Dear all, I have a matrix called combine86 which looks as follows: > combine86 Sim Mean Obs Mean Sim Sum Obs Sum AMAZON 1172.0424 1394.44604 553204 659573 NILE 262.4440 164.23921 67973 41881 CONGO682.8007 722.63971 205523 214624 MISSISSIPPI 363.