Displaying 2 results from an estimated 2 matches for "agrp".
Did you mean:
agp
2007 Oct 07
2
Re-ordering factors
...ring in
the table. I would like to re-order the levels of the factors to achieve
this.
I have tried reorder() in the gdata package:
> ed <- reorder(Education,neworder= c("IncompleteHS","CompletedHS",
+ "Uni1-3","Uni4+"))
> agrp <- reorder(Age_Group,neworder=
+ c("25-34","35-44","45-54","55-64",">64"))
> xtabs(Count ~ ed + agrp)
agrp
ed 25-34 35-44 45-54 55-64 >64
CompletedHS 16431 1855 9435 8795 7558
IncompleteHS 5416...
2008 Oct 11
1
producing colour .eps output
I am using the following code to produce a graphic:
library(lattice)
postscript("figs%03d.eps", width = 6.0, height = 6.0,
?????????? horizontal = FALSE, onefile = FALSE, paper = "special")
xyplot(cases~yr|agrp*sex,data=data[tse==0 & expgrp==1,],
groups=source, pch=".", type="l",
?????? main="Exposure group 1, time since entry 0")
The resulting figure is in black and white and I can not seem to find a way to get colour output.
Any pointers gratefully received....