Re: [R] annotating an axis in bwplot (lattice)

2005-09-22 Thread Deepayan Sarkar
On 9/20/05, Sebastian Luque [EMAIL PROTECTED] wrote: Hi, I'd like to add, say, the sample size for every group in a bwplot as a parenthetical annotation to the axis. Here's a sketch: --8---cut here---start-8--- require(Hmisc) age - sample(1:100, 1000,

Re: [R] annotating an axis in bwplot (lattice)

2005-09-22 Thread Sebastian Luque
Hi Deepayan, Deepayan Sarkar [EMAIL PROTECTED] wrote: [...] If you really want the frequencies for the whole (subsetted) data, you might as well use something like: dd - data.frame(age, sex, grp) with(subset(dd, age 20), bwplot(grp ~ age | sex, aspect = 0.5, box.ratio = 2,

Re: [R] annotating an axis in bwplot (lattice)

2005-09-22 Thread Deepayan Sarkar
On 9/22/05, Sebastian Luque [EMAIL PROTECTED] wrote: Hi Deepayan, Deepayan Sarkar [EMAIL PROTECTED] wrote: [...] If you really want the frequencies for the whole (subsetted) data, you might as well use something like: dd - data.frame(age, sex, grp) with(subset(dd, age 20),

[R] annotating an axis in bwplot (lattice)

2005-09-20 Thread Sebastian Luque
Hi, I'd like to add, say, the sample size for every group in a bwplot as a parenthetical annotation to the axis. Here's a sketch: --8---cut here---start-8--- require(Hmisc) age - sample(1:100, 1000, replace = TRUE) sex - gl(2, 8, 1000, c(Male, Female)) grp -