search for: x11colortype

Displaying 10 results from an estimated 10 matches for "x11colortype".

2007 May 30
0
Help me understand colours on linux
...ly let me create that many colours? 2) if not, how do I test if there is not, and implement gray instead of colours? This function and package works on windows, and it works with less colours. I guess I could try and trap the error, and if I can, go back and re-run the function with "options(X11colortype="gray")" but I'd prefer something more elegant... What I'm looking for is some test where I can say "If you're going to fail, X11colortype='gray', else X11colortype='true'". Possible? Many thanks Mick The information contained in this message...
2004 Sep 21
2
png problem
...is blocked at the last command (R does not print any prompt after the last command). Nothing is written in the file (Gimp indicates that the file is corrupted). However, > png("toto.png") > image(matrix(rnorm(10000), 100, 100)) > dev.off() works fine. I tried: > options(X11colortype = "pseudo.cube") > png("toto.png") > image(matrix(rnorm(10000), 100, 100)) > dev.off() But, here again, R is blocked. I tried to replace dev.off() by graphics.off(), but this does not resolve the problem. The problem does not occurs when the function X11() is used i...
2006 May 09
1
2.3.0 problems
...k[!is.na(pk[,"Priority"]) & (pk[,"Priority"] %in% c("base","recommended")),1]) library(ii,character.only=TRUE) utils::help.start() grDevices::x11(display = "", width = 9, height = 7, pointsize = 12, gamma = 1, colortype = getOption("X11colortype"), maxcubesize = 256) cat(paste("Started in",system("pwd",TRUE)," with '~/R/.Rprofile' edited on ", editedOn,"\n")) } Christian -- Dr. Christian W. Hoffmann, Swiss Federal Research Institute WSL Mathematics + Statistical Computing Zuerche...
2004 Jun 16
1
start-up problems
...dieu, delete all ps.out.*.ps files\n") system("rm -f ps.out.*.ps") system(" \n") } .First <- function() { options(digits=6) library(MASS) help.start() x11(display = "", width = 9, height = 7, pointsize = 12, gamma = 1, colortype = getOption("X11colortype"), maxcubesize = 256) } > Now > source("$R_PROFILE/.Rprofile") Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open file `$R_PROFILE/.Rprofile' > but > source("~/R/.Rprofile") /home/woodstock/hoffma...
2006 Feb 08
1
invalid graphics state using dev.print (fwd)
...nt(png) Error in dev.copy(device = function (filename = "Rplot%03d.png", width = 480, : invalid graphics state > traceback() 6: dev.copy(device = function (filename = "Rplot%03d.png", width = 480, height = 480, pointsize = 12, gamma = 1, colortype = getOption("X11colortype"), maxcubesize = 256, bg = "white", fonts = getOption("X11fonts"), res = NA) .Internal(X11(paste("png::", filename, sep = ""), width, height, pointsize, gamma, colortype, maxcubesize, bg, bg, fonts, res)), width = 6.9871578...
2000 Jul 18
5
X11 & dev2bitmap
...a) > dev2bitmap("InsectSpray.BMP") Error in device(...) : Object "width" not found I looked-up what R means by 'device' and constructed this command: > X11(display = "", width = 7, height = 7, pointsize = 12, gamma = 1, colortype = getOption("X11colortype"), maxcubesize = 256) with no resistance, but no change in the result. I looked up files containing x11 or X11 on my systen and found: /usr/local/R_HOME/R-1.1.0/src/unix/X11 /usr/local/R_HOME/R-1.1.0/src/unix/X11/devX11.c /usr/local/R_HOME/R-1.1.0/src/unix/X11/devX11.d /usr/local/R_HOME/R...
1999 Apr 09
1
Compilation problems with R-0.64.0
...e compilation stops with an error message. 2) After renaming class to Visualclass in devX11.c everything looks fine and an R binary file is created. However, it is not possible to open an X11 window: > x11() Error: invalid colortype passed to X11 driver 3) Trying something like > options(X11colortype = "true") > x11() > x<-seq(0,2*pi,len=100) > plot(x,sin(x),ty="l") works and draws a sine curve, but the tick marks are in a poor state: The horizontal tick marks start at the left border of the graphics box, but continue to the left crossing the legend. The ve...
1999 Apr 02
3
X11 Device Driver
I have made some modifications to the X11 graphics driver so that it is more flexible about its use of colors. I have added a new parameter to the X11/x11 function which controls this. The parameter is currently called "colormodel" and works as follows: colormodel = 0 Monochrome graphics colormodel = 1 Grayscale (256 shades) colormodel = 2 Pseudocolor1 colormodel = 3
1999 Nov 30
2
graphics
I have been receiving complaints that my libraries no longer give reasonable graphics with R0.90. I have been replying that I have not changed anything. Among my travels (presently in Umea), I have finally had a chance to take a look. The best way to describe the current default graphics is HORRIBLY UGLY. The R core member who made those changes should buy glasses to see the screen better instead
1999 Dec 03
1
R-help Digest V1 #34
...le graphics in an example just fly by, unless the PD> user sets the parameter. yes, definitely a reasonable feature request! -- see below BUT, for a first "quick fix" : Why not change X11's argument pointsize = 12 to pointsize = .Options$X11pointsize (we already have X11colortype !). Now back to the feature request: Do we want par.defaults() for this? It would have the same arguments as par() plus additional device = .Options$device with further possibility device = "all" i.e., by default, par.defaults() would set things only for the default device,...