I would like to set labels: it should be always "n" (for the number of observations) but with correct indices and values for each plot element.
For example, in the following simple example:
plot(1:4)
value<-c(10,20)
index<-c("a","b")
axis(3,at=c(2,3),labels=n?)
What should I do, so that first n has index "a" and value 10 and the second one index "b" and value 20?
Edit:
axis(3,at=c(2,3),
labels=c(eval(substitute(expression(n==value),
list(value=value[1]))),
eval(substitute(expression(n==value),
list(value=value[2])))))