baba@muj.biglobe.ne.jp
2002-Aug-16 12:57 UTC
[R] How to change parameters of Trellis-like graphs
Dear R-lists I have just upgraded the version 1.5.1 from 1.4.1 in my laptop PC, because, I have to prepare graphs by using the grid and lattice packages. I tried it with 1.4.1, but I could not it. After upgrade to 1.5.1, I have finished it. Next, I tried to modify some graphs with as follows: # # setting color for graph # library(grid) library(lattice) background <- trellis.par.get() background$col <- "white" show.settings() background <- trellis.par.set("background",background) show.settings() names(trellis.par.get()) dot.symbol <- trellis.par.get() dot.symbol$col <- "yellow" dot.symbol <- trellis.par.set("dot.symbol",dot.symbol) show.settings() # # # First, I could change the background color from Gray to White. But, when the last code 'show.settings()' runs, R 1.5.1 have crushed on my laptop. I have no idea such how to change the dot color of graphs. Does anyone tell me how to change the graph parameters? Thanks in advance, Baba -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
2002-Aug-16 13:26 UTC
[R] How to change parameters of Trellis-like graphs
It crashes on Linux too. You are not doing this right background <- trellis.par.get("background") background$col <- "white" show.settings() background <- trellis.par.set("background",background) show.settings() dot.symbol <- trellis.par.get("dot.symbol") dot.symbol$col <- "yellow" dot.symbol <- trellis.par.set("dot.symbol",dot.symbol) show.settings() works. On Fri, 16 Aug 2002 baba at muj.biglobe.ne.jp wrote:> Dear R-lists > > I have just upgraded the version 1.5.1 from 1.4.1 in my laptop PC, > because, I have to prepare graphs by using the grid and lattice packages. > I tried it with 1.4.1, but I could not it. > After upgrade to 1.5.1, I have finished it. > > Next, I tried to modify some graphs with as follows: > # > # setting color for graph > # > library(grid) > library(lattice) > background <- trellis.par.get() > background$col <- "white" > show.settings() > background <- trellis.par.set("background",background) > show.settings() > names(trellis.par.get()) > dot.symbol <- trellis.par.get() > dot.symbol$col <- "yellow" > dot.symbol <- trellis.par.set("dot.symbol",dot.symbol) > show.settings() > # > # > # > First, I could change the background color from Gray to White. > But, when the last code 'show.settings()' runs, R 1.5.1 have crushed on my laptop. > I have no idea such how to change the dot color of graphs. > Does anyone tell me how to change the graph parameters?-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._