Bert Gunter
2015-Jul-02 18:46 UTC
[R] Lattice: set col = "black" for box.rectangle and box.umbrella
1. box.rectangle, etc. are not functions; they are (lists of) parameters that are sublists of the par.settings list. 2. Read the Help for simpleTheme() -- it has a specific list of parameters which is nothing like what you show. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 2, 2015 at 11:04 AM, Rich Shepard <rshepard at appl-ecosys.com> wrote:> On Thu, 2 Jul 2015, Rich Shepard wrote: > >> ... and invoking R within emacs ... > > > Trying a different approach: > > bwplot(quant ~ param, data = b, main = 'Stream B Constituents', ylab > 'Concentration (mg/L)', xlab = 'Constituent', par.settings > simpleTheme(box.rectangle(col = 'black'), box.umbrella(col='black'), > box.dot(col= 'red'))) > Error in setValue(col, "col", 1:6) : > could not find function "box.rectangle" > > I'm stymied, > > > Rich > > ______________________________________________ > R-help at 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.
Rich Shepard
2015-Jul-02 18:51 UTC
[R] Lattice: set col = "black" for box.rectangle and box.umbrella
On Thu, 2 Jul 2015, Bert Gunter wrote:> 1. box.rectangle, etc. are not functions; they are (lists of) > parameters that are sublists of the par.settings list.Bert, Thought so ...> 2. Read the Help for simpleTheme() -- it has a specific list of > parameters which is nothing like what you show.found the simpleTheme example on a web forum thread. Mea culpa! Will read the help page. Still desire to have the changes set in .Rprofile rather than for each plot. Thanks, Rich
Bert Gunter
2015-Jul-02 18:57 UTC
[R] Lattice: set col = "black" for box.rectangle and box.umbrella
Let me rephrase my 2nd point: simpleTheme() has a specific list of **arguments** which is nothing like you show. As the Help says, its value is a list of parameter settings that can be used by par.settings. -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 2, 2015 at 11:46 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote:> 1. box.rectangle, etc. are not functions; they are (lists of) > parameters that are sublists of the par.settings list. > > 2. Read the Help for simpleTheme() -- it has a specific list of > parameters which is nothing like what you show. > > Cheers, > Bert > Bert Gunter > > "Data is not information. Information is not knowledge. And knowledge > is certainly not wisdom." > -- Clifford Stoll > > > On Thu, Jul 2, 2015 at 11:04 AM, Rich Shepard <rshepard at appl-ecosys.com> wrote: >> On Thu, 2 Jul 2015, Rich Shepard wrote: >> >>> ... and invoking R within emacs ... >> >> >> Trying a different approach: >> >> bwplot(quant ~ param, data = b, main = 'Stream B Constituents', ylab >> 'Concentration (mg/L)', xlab = 'Constituent', par.settings >> simpleTheme(box.rectangle(col = 'black'), box.umbrella(col='black'), >> box.dot(col= 'red'))) >> Error in setValue(col, "col", 1:6) : >> could not find function "box.rectangle" >> >> I'm stymied, >> >> >> Rich >> >> ______________________________________________ >> R-help at 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.
Duncan Mackay
2015-Jul-03 01:49 UTC
[R] Lattice: set col = "black" for box.rectangle and box.umbrella
Hi I usually avoid global settings as they may change between graphs therefore I use the par.settings in each plot My settings are par.settings = list(fontsize = list(text = 10.5, points = 8), strip.background = list(col = "transparent"), box.dot = list(col = "#FF0000", # red pch = "|"), box.rectangle = list(col = "#000000", lty = 1), box.umbrella = list(col = "#000000", lty = 1), plot.symbol = list(alpha = 1, col = "#000000", cex = 0.7, pch = 20) ), This gives a red line instead of the large dot: it avoids "bulls-eyes" across the panel when there are a lot of factors Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mackay at northnet.com.au -----Original Message----- From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Rich Shepard Sent: Friday, 3 July 2015 04:52 To: r-help at r-project.org Subject: Re: [R] Lattice: set col = "black" for box.rectangle and box.umbrella On Thu, 2 Jul 2015, Bert Gunter wrote:> 1. box.rectangle, etc. are not functions; they are (lists of) > parameters that are sublists of the par.settings list.Bert, Thought so ...> 2. Read the Help for simpleTheme() -- it has a specific list of > parameters which is nothing like what you show.found the simpleTheme example on a web forum thread. Mea culpa! Will read the help page. Still desire to have the changes set in .Rprofile rather than for each plot. Thanks, Rich ______________________________________________ R-help at 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.
Duncan Mackay
2015-Jul-04 00:23 UTC
[R] Lattice: set col = "black" for box.rectangle and box.umbrella
Rich Just a thought Have you set pch colour values somewhere else? see also https://stat.ethz.ch/pipermail/r-help/2010-March/230329.html Duncan -----Original Message----- From: rshepard at localhost.appl-ecosys.com [mailto:rshepard at localhost.appl-ecosys.com] On Behalf Of Rich Shepard Sent: Saturday, 4 July 2015 01:58 To: Duncan Mackay Subject: Re: [R] Lattice: set col = "black" for box.rectangle and box.umbrella On Fri, 3 Jul 2015, Duncan Mackay wrote:> My settings are > > par.settings = list(fontsize = list(text = 10.5, > points = 8), > strip.background = list(col = "transparent"), > box.dot = list(col = "#FF0000", # redDuncan, This is interesting: the color of the horizontal line remains black, rather than displaying in red whether I use the numeric code or the word. I need to explore why. Thanks again, Rich -- Richard B. Shepard, Ph.D. Applied Ecosystem Services, Inc. Troutdale, OR 97060 USA www[dot]appl-ecosys[dot]com Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2015-Jul-04 13:04 UTC
[R] Lattice: set col = "black" for box.rectangle and box.umbrella
On Sat, 4 Jul 2015, Duncan Mackay wrote:> Just a thought > Have you set pch colour values somewhere else?Duncan, Not on purpose.> see also https://stat.ethz.ch/pipermail/r-help/2010-March/230329.htmlWill do. Thanks, Rich