[R] How to change parameters of Trellis-like graphs
baba@muj.biglobe.ne.jp
baba at muj.biglobe.ne.jp
Sat Aug 17 04:04:32 CEST 2002
Dear Prof. Ripley
Thank you very much for your kind support.
Your code can work well on my laptop.
Best and Kind regards,
Baba
ripley at stats.ox.ac.uk wrote:
>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
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list