Hi, another question: is there any argument that controls the line width of axis box of xyplot()? I tried lwd=2 or lwd.axis=2 in xyplot() or within scales=list() argument, without success. Thanks John
check out ?par for all the details on plotting ?mgp? The margin line (in ?mex? units) for the axis title, axis labels and axis line. Note that ?mgp[1]? affects ?title? whereas ?mgp[2:3]? affect ?axis?. The default is ?c(3, 1, 0)?. On Tue, Sep 14, 2010 at 8:56 AM, array chip <arrayprofile at yahoo.com> wrote:> Hi, another question: is there any argument that controls the line width of axis > box of xyplot()? I tried lwd=2 or lwd.axis=2 in xyplot() or within scales=list() > argument, without success. > > Thanks > > John > > ______________________________________________ > R-help at 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. >
On Tue, Sep 14, 2010 at 4:26 AM, array chip <arrayprofile at yahoo.com> wrote:> Hi, another question: is there any argument that controls the line width of axis > box of xyplot()? I tried lwd=2 or lwd.axis=2 in xyplot() or within scales=list() > argument, without success.xyplot(1:10 ~ 1:10, par.settings = list(axis.line = list(lwd = 2))) If you do not want this to affect the tick marks as well, then you additionally need scales = list(lwd = 1) -Deepayan
Thank you Deepayan. This is exactly what I needed. John ----- Original Message ---- From: Deepayan Sarkar <deepayan.sarkar at gmail.com> To: array chip <arrayprofile at yahoo.com> Cc: r-help at r-project.org Sent: Tue, September 14, 2010 4:52:29 AM Subject: Re: [R] xyplot axis line width On Tue, Sep 14, 2010 at 4:26 AM, array chip <arrayprofile at yahoo.com> wrote:> Hi, another question: is there any argument that controls the line width of >axis > box of xyplot()? I tried lwd=2 or lwd.axis=2 in xyplot() or within >scales=list() > argument, without success.xyplot(1:10 ~ 1:10, par.settings = list(axis.line = list(lwd = 2))) If you do not want this to affect the tick marks as well, then you additionally need scales = list(lwd = 1) -Deepayan