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]]
___
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,
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,
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
4 matches
Mail list logo