Hi -
I am not R expert and I would appreciate your time if you can help me
about my xyplot question.
I would like to add text (p-value) in a 4 panels xyplot. I thought
panel = function{} should work but I am not sure where I did it wrong.
The error message from the following code is
"Argument subscripts is missing with no default values"
xyplot(GLG ~ PD | factor(TRT) , groups = GLG_ind,strip = strip.custom(style =4),ref = T, as.table=TRUE,data = splitPD, subscripts = TRUE,cex = 2,
panel = function(x, y, pvalue,subscripts,...){
panel.xyplot(x,y,...);
panel.abline(h = 51.95);
grid.text(paste("p-value =", pvalue[subscripts]), .25, .15,
gp = gpar(cex = .8))}
)
I really appreciate your time to help me.
Best,
Haoda
Appendix -
Data