Re: [R] Horizontal grid in background of barplot

2012-09-05 Thread Cable, Sam B Civ USAF AFMC AFRL/RVBXI
A horribly pedestrian alternative to plotrix: barplot(x,beside=TRUE, ylim=c(0,90), etc.) par('usr')# just getting plot limits [1] 0.44 15.56 0.00 90.00 par(new=T) lines(c(0.44,15.56),c(20,20)) lines(c(0.44,15.56),c(40,40)) etc. [[alternative HTML version deleted]]

Re: [R] Horizontal grid in background of barplot

2012-09-04 Thread Jim Lemon
On 09/04/2012 05:12 AM, David Arnold wrote: All, I have: x- matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE) rownames(x)- c(Cold or flu,Headache,Backache); colnames(x)- c(Went to doctor,No response,Did nothing,Self-medicated) x- t(x) print(x) barplot(x,beside=TRUE,

[R] Horizontal grid in background of barplot

2012-09-03 Thread David Arnold
All, I have: x - matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE) rownames(x) - c(Cold or flu,Headache,Backache); colnames(x) - c(Went to doctor,No response,Did nothing,Self-medicated) x - t(x) print(x) barplot(x,beside=TRUE, ylim=c(0,90), xlab=Ailment,

Re: [R] Horizontal grid in background of barplot

2012-09-03 Thread Peter Ehlers
On 2012-09-03 12:12, David Arnold wrote: All, I have: x - matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE) rownames(x) - c(Cold or flu,Headache,Backache); colnames(x) - c(Went to doctor,No response,Did nothing,Self-medicated) x - t(x) print(x) barplot(x,beside=TRUE,