Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-19 Thread David L Carlson
tment of Anthropology Texas A University -----Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Peter Langfelder Sent: Sunday, August 19, 2018 10:51 AM To: c...@disroot.org Cc: r-help Subject: Re: [R] [FORGED] Re: bar plot add space to group data On Sun, Au

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-19 Thread Peter Langfelder
On Sun, Aug 19, 2018 at 7:15 AM wrote: > > August 19, 2018 4:58 AM, "Peter Langfelder" > wrote: > > > To the OP, try formatting the data to be plotted as a matrix, not as a > > vector > > CSV data provided in a previous message; is not the data formatted as a > matrix? I meant the data you

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-19 Thread citc
August 19, 2018 4:58 AM, "Peter Langfelder" wrote: > To the OP, try formatting the data to be plotted as a matrix, not as a > vector CSV data provided in a previous message; is not the data formatted as a matrix? __ R-help@r-project.org mailing list

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-18 Thread Rolf Turner
On 19/08/18 16:12, Jim Lemon wrote: Hi Rolf, That's what comes of being in a hurry. legend(4.1,30,c("A+","A","B","C","D","E","U"), fill=c("white","lightblue","blue","orange","green","red","pink")) and I thank you for alerting me to the fact that the legend arguments in barp don't position

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-18 Thread Rolf Turner
On 19/08/18 16:58, Peter Langfelder wrote: My guess is that space has no effect because (1) the first element is zero and (2) the code in OP's message has barplot(gceac[,3], ... i.e. barplot does not see a matrix, only a vector. To the OP, try formatting the data to be plotted as a matrix,

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-18 Thread Peter Langfelder
My guess is that space has no effect because (1) the first element is zero and (2) the code in OP's message has barplot(gceac[,3], ... i.e. barplot does not see a matrix, only a vector. To the OP, try formatting the data to be plotted as a matrix, not as a vector, then the space argument should

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-18 Thread Jim Lemon
Hi Rolf, That's what comes of being in a hurry. legend(4.1,30,c("A+","A","B","C","D","E","U"), fill=c("white","lightblue","blue","orange","green","red","pink")) and I thank you for alerting me to the fact that the legend arguments in barp don't position the legend properly. I'll fix it. Jim

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-18 Thread Rolf Turner
Jim: (a) There's no legend. (b) I am still curious as to why the OP's code didn't work, in that the "space=c(0,2)" argument seemed to have no effect. cheers, Rolf On 18/08/18 20:45, Jim Lemon wrote: Hi citc, Try this: geac<-matrix(c(9,9,8,8,8,23,23,23,23,22,27,27,27,25,24,