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

2018-08-19 Thread citc
August 17, 2018 10:24 PM, "Rolf Turner" wrote: > On 18/08/18 02:37, David L Carlson wrote: > >> Notice below that your message is substantially scrambled. R-Help is a >> plain text only list so you should set your email client to produce plain >> text messages. Apologies, forgot to change the

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

2018-08-18 Thread Jim Lemon
Hi citc, Try this: geac<-matrix(c(9,9,8,8,8,23,23,23,23,22,27,27,27,25,24, 19,19,19,20,20,17,17,17,18,19,8,8,8,9,9,2,2,3,3,3),ncol=5,byrow=TRUE) library(plotrix) barp(geac,names.arg=2014:2018,main="A level grades chemistry", xlab="Year",ylab="Percentage of each grade",ylim=c(0,30), col=c("white

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

2018-08-17 Thread Rolf Turner
On 18/08/18 02:37, David L Carlson wrote: Notice below that your message is substantially scrambled. R-Help is a plain text only list so you should set your email client to produce plain text messages. The best place to start is with the manual page for the barplot() function: ?barplot or h

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

2018-08-17 Thread David L Carlson
lp@r-project.org Subject: [R] bar plot add space to group data R-users, Can someone please advise how to improve the code below that was used to produce the graph shown at the following hyperlink (https://chemistryinthecity.neocities.org/content/entry1808.html#17)? The request is to add space between

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

2018-08-17 Thread Chris Ryan
Using the lattice package would provide an easy way to distinguish years, by putting them in different panels. Lattice would also help avoid some other features of this graph that, in my opinion, are suboptimal. See Tufte or Cleveland. Chris Ryan -- Sent from my Android device with K-9 Mail.

[R] bar plot add space to group data

2018-08-17 Thread citc
R-users, Can someone please advise how to improve the code below that was used to produce the graph shown at the following hyperlink (https://chemistryinthecity.neocities.org/content/entry1808.html#17)? The request is to add space between the annual data groups. barplot(gceac[,3], xlab='year',