Rich Shepard
2015-Jul-02 17:50 UTC
[R] Lattice: set col = "black" for box.rectangle and box.umbrella
On Thu, 2 Jul 2015, David Winsemius wrote:> My .Rprofile has this (among other items):... David, My attempts at adding lattice.options to .Rprofile fail. In that file is lattice.options(trellis.par.set(list( box.umbrella=list(col="black"), box.rectangle=list(col="black") ) )) and invoking R within emacs displays this warning: Warning message: In trellis.par.set(list(box.umbrella = list(col = "black"), box.rectangle = list(col = "black"))) : Note: The default device has been opened to honour attempt to modify trellis settings [Previously saved workspace restored] Removing the enclosing lattice.options() produces the same error. In section 7.1.4 I'm not groking the correct syntax to change the color of both box items within ~.Rprofile. Rich
Rich Shepard
2015-Jul-02 18:04 UTC
[R] Lattice: set col = "black" for box.rectangle and box.umbrella
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
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.