[Rd] bug in color handling in lattice (PR#7777)

rmh at temple.edu rmh at temple.edu
Wed Apr 6 21:07:32 CEST 2005


# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
#       r-bugs at r-project.org
#
######################################################

## open a new trellis.device
trellis.device()

## works normally
xyplot(rnorm(10) ~ I(1:10), panel=function(...) {
  panel.axis(side="b")
})

## invalid color name
xyplot(rnorm(10) ~ I(1:10), panel=function(...) {
  panel.axis(side="b", line.col="invisible")
})

## repeat of previously working example.
## still an invalid color name.
## It is necesary to dev.off() in order to continue.
xyplot(rnorm(10) ~ I(1:10), panel=function(...) {
  panel.axis(side="b")
})






> search()
[1] ".GlobalEnv"        "package:methods"   "package:stats"    
[4] "package:graphics"  "package:grDevices" "package:utils"    
[7] "package:datasets"  "Autoloads"         "package:base"     
> ls()
[1] "last.warning"
> ## open a new trellis.device
> trellis.device()
Error: couldn't find function "trellis.device"
> 
> library(lattice)
> ## open a new trellis.device
> trellis.device()
> 
> ## works normally
> xyplot(rnorm(10) ~ I(1:10), panel=function(...) {
+   panel.axis(side="b")
+ })
> 
> ## invalid color name
> xyplot(rnorm(10) ~ I(1:10), panel=function(...) {
+   panel.axis(side="b", line.col="invisible")
+ })
Error in grid.Call.graphics("L_segments", x$x0, x$y0, x$x1, x$y1) : 
        invalid color name
> 
> ## repeat of previously working example.
> ## still an invalid color name.
> ## It is necesary to dev.off() in order to continue.
> xyplot(rnorm(10) ~ I(1:10), panel=function(...) {
+   panel.axis(side="b")
+ })
Error in grid.newpage() : invalid color name
>


--please do not edit the information below--

Version:
 platform = i386-pc-mingw32
 arch = i386
 os = mingw32
 system = i386, mingw32
 status = 
 major = 2
 minor = 0.1
 year = 2004
 month = 11
 day = 15
 language = R

Windows XP Home Edition (build 2600) Service Pack 2.0

Search Path:
 .GlobalEnv, package:lattice, package:methods, package:stats, package:graphics, package:grDevices, 
package:utils, package:datasets, Autoloads, package:base



More information about the R-devel mailing list