[R] how to add a legend in a barchart

ronggui 0034058 at fudan.edu.cn
Wed Dec 1 12:43:31 CET 2004


i use 
#pic 1
library(lattice)
barchart(V1~V2,data,panel=function(x,y,...){
panel.barchart(x,y,...)
panel.abline(v=6.76,col="red")},
)
to draw a picture.and i want to add a legend to telling others the line vertical is x=6.76.so how should i do? legend does not works.
thank you .
i have use help.search("legend") but no result i want.




More information about the R-help mailing list