Deepayan Sarkar wrote: > On Mon, Apr 6, 2009 at 9:00 AM, bruno joly <bruno.j...@meteo.fr> wrote: > >> Hi everyone, >> >> I am new to the list. >> My problem is to change the color of the label in a contour plot. The plot >> is quite dark and I'd like to have the line and label white, it works for >> the line with a simple "col", but for the labels I need to pass throught a >> panel call and : >> >> >>> contourplot(Prob ~ D.CSW * >>> D.CS,data=grid,region=TRUE,col="white",panel=function(x,y,z,...){panel.contourplot(...,labels=list(col="white"),...)}) >>> >> give me the answer "the argument 'label' may correspond to other variables" >> (I translate the error message from my  french version) >> > > You don't need a panel function; just use > > contourplot(Prob ~ D.CSW * D.CS,data=grid,region=TRUE, > col="white",labels=list(labels = TRUE, col="white")) > > (the documentation suggests that the 'labels=TRUE' is unnecessary, but > that is not so). > > -Deepayan > > Thanks a lot,
Actually labels=TRUE is necessary. This was the first command I tried but I didn't think about labels=T and It didn't work. Thanks again. -- ----------------------------- Bruno JOLY Météo-France CNRM/GMAP/RECYF 42, avenue G. Coriolis 31057 Toulouse, France Tél: (33) (0)5 61 07 99 09 Fax: (33) (0)5 61 07 84 53 email:bruno.j...@meteo.fr ----------------------------- [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.