Thank you! yes, I thought line width was controlled by some kind of panel function...
On Wed, Nov 17, 2021 at 7:06 PM Bert Gunter <bgunter.4...@gmail.com> wrote: > > Your code is unnecessarily complex. > contourplot() will by default use the panel.contourplot() function and pass > down graphical arguments to it. > > So this suffices: > contourplot(Z ~ X*Y, data = df, cuts = 3, lwd =2) > > Customization of the panel function appears to be unnecessary for your needs. > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Wed, Nov 17, 2021 at 1:42 AM Luigi Marongiu <marongiu.lu...@gmail.com> > wrote: >> >> sorry, it was easier than expected: just add `lwd` to the main cal. >> sorry I could not stop the message before checking... >> >> On Wed, Nov 17, 2021 at 10:31 AM Luigi Marongiu >> <marongiu.lu...@gmail.com> wrote: >> > >> > Hello, >> > I have generated a contourplot with lattice. How do I set the line >> > width? I tried with: >> > ``` >> > library(lattice) >> > contourplot(Z ~ X*Y, data = df, cuts = 3, >> > panel=function(x,y,...){ >> > panel.contourplot(lty=1, lwd = 3) >> > }) >> > ``` >> > but did not work... >> > Thank you >> >> >> >> -- >> Best regards, >> Luigi >> >> ______________________________________________ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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. -- Best regards, Luigi ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.