similar to: "Too many raster images" in devPS.c

Displaying 20 results from an estimated 400 matches similar to: ""Too many raster images" in devPS.c"

2013 Sep 16
1
Patch: fix segfault from empty raster
Hi, A colleague recently came across an R crash, which I can boil down to the following, running under Rgui on Windows 7: library(ggplot2) ggplot(data.frame(x=1, y=1, z=4.7), aes(x, y, z=z)) + stat_summary2d() This reliably causes a segmentation fault. sessionInfo() below. What's happening is that (for reasons which I'll discuss with the ggplot2 developers) the 'colorbar'
2010 Jul 02
0
PDFfontNumber bugs in devPS.c (Re: plain text in Chinese can not be set)
On 2010-7-1 15:24, Jinsong Zhao wrote: > > Read the source again more carefully. I think I get the solution: > > Change the following line in PDFfontNumber function in devPS.c: > > num = 1000 + (cidfontIndex - 1)*5 + 1 + face; > to > num = 1000 + (cidfontIndex - 1)*5 + face; > > It appears two times in the function. > > However, I don't know how to compile
2010 Jul 04
0
PDFfontNumber bugs in devPS.c (Re: plain text in Chinese can not be set)
Hi Thanks very much for the report, diagnosis, and patch! I have implemented your fix in the development version of R. Paul Jinsong Zhao wrote: > On 2010-7-1 15:24, Jinsong Zhao wrote: >> Read the source again more carefully. I think I get the solution: >> >> Change the following line in PDFfontNumber function in devPS.c: >> >> num = 1000 + (cidfontIndex - 1)*5
2008 May 23
0
rgb to cmyk conversion is wrong in src/library/grDevices/src/devPS.c (PR#11509)
The conversion of RGB to CMYK takes place in PostScriptSetCol() starting at line 2900 of R-2.7.0/src/library/grDevices/src/devPS.c if(strcmp(mm, "cmyk") == 0) { double c = 1.0-r, m=1.0-g, y=1.0-b, k=c; k = fmin2(k, m); k = fmin2(k, y); if(k == 1.0) c = m = y = 0.0; else {c /= (1.-k); m /= (1.-k); y /= (1.-k);} r, g, and b have already been normalized to the
2000 Feb 07
4
Segmentation fault, devPS.c, 0.99.0 (PR#413)
Full_Name: Roger Bivand Version: 0.99.0 OS: RH Linux 6.1 Submission from: (NULL) (158.37.60.152) I am working on an interface between R and the GRASS geographical information system, written in R, with no dynamically loaded code. I have written full examples, and tested then under R 0.90.1, both by entering example() for each function and R CMD check, both of which worked without problem. Under
2012 Mar 16
1
ggmap crash
Not sure if this is the right place to report this, but: Am using ggmap to generate a map of a bounding box from 161 latitude/longitude pairs and the code crashes R (in ess). Data is at http://analysis.d8u.us/~hdiwan/plotSource.csv and the code to read it is below. I'm not sure if ess, emacs, ggmap, R, or my laptop is to blame. Here's the code: > rmc <-
2010 Oct 13
2
Scripting SVG with R
Since now many browsers support (ECMA/Java-)scripted SVG, I am wondering whether there are already any examples of inserting R code into SVG documents (or a Javascript canvas?) either directly, or perhaps more likely through a JavaScript layer, to dynamically generate graphics or make them interactive? I am aware of the excellent packages gridSVG and SVGAnnotation, which facilitate making
2008 Jul 01
1
Autoconf / Windows package building problem for device package
Dear list, Tadashi Kadowaki has developed a pdf device package that allows to add hyperlinks and popups to (currently) text, mtext and rect calls. The package passes R CMD check (minor warnings) and compiles on MacOS X and GNU/Linux, but we do not succeed in building the package for Windows. The current version of the package can be checked out as svn checkout
2009 Feb 21
1
Extracting xy from raster based on raster value
I have a raster (which I called glc), which I read into R as a raster with "raster.create.from.file" from the raster package (R-forge). Values in glc range between 1 and 27 (whole numbers only). I'd like to extract all cells with a value of 1 to create a new raster with only the cells that have a value of 1, or to extract the xy values of all raster cells with a value of 1. Could you
2009 Dec 28
2
[BioC] make.cdf.package: Error: cannot allocate vector of size 1 Kb
My machine has 8GB memory. I had quit all other programs that might take a lot of memory when I try the script (before I post the first message in this thread). The cdf file is of only 741 MB. It is strange to me to see the error. On Mon, Dec 28, 2009 at 2:38 AM, Wolfgang Huber <whuber at embl.de> wrote: > Dear Peng Yu > > how big is the RAM of your computer? You could try with
2013 Feb 14
0
How write raster files after manipulation?
I have 12 binary (raster) files https://echange-fichiers.inra.fr/get?k=k3M2jatJyHy65Cs99G4 . I would like to calculate the moving average for the 12 values for each pixel in the 12 files. For a simple vector we can get a moving average by using this : x <- c(1,2,3,NA,NA,4,6,5,6,4,2,5) movingmean <- rollapply(x, 3, FUN = mean, na.rm = T) now I want
2011 Sep 21
1
raster plot is empty
Dear R-help, I have a problem plotting maps using the raster package when I use R on my workplace server, but not when I use my own desktop. I suspect the server version must be missing something and was wondering if anyone would have any ideas. The problem occurs after library(raster) f <- system.file("external/test.grd", package="raster") r <- raster(f) plot(f) On
2013 Mar 25
0
plot Raster
Dear all, I am trying to plot an image so I am trying this through raster layer. You can copy paste the following require('raster') Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) rasterData<-raster(Data) lengthOut<-5 xAxisFrequencies<-seq(800,900,length.out=lengthOut) plot(rasterData, ylab="",xaxt="n",yaxt="n") axis(1,
2011 Apr 21
1
Sorting values within a raster
I am working with a raster and want to take values assigned to each cell and sort them from largest to smallest, then cummulatively sum them together (in order from largest to smallest). I'll then be coding the individual cells such that the top 10% of the largest cell values can be visualize with one color, the next 10% with another and so on. I have tried a number of schemes but
2012 Sep 10
0
predict pixels of raster using caret-derived models
Is it somehow possible to use the the predict method of the raster package with a prediction model obtained using caret's train()? / predict(rasterStack, carettrain, filename="...", progress='text', format="BSQ", datatype='INT1U', type='response', overwrite=TRUE) / Thank you -- View this message in context:
2010 Apr 10
0
adehabitat raster import
Hello all, I'm new to adehabitat and am having trouble getting my ascii files into the r. I have 45 environmental data layers that are all stored in a folder as ascii files. Is there an easy way to pull in all 45 of my data layers into a kasc dataframe. I'm not new to r or multivariate modeling, but the documentation seems confusing. I've experimented with bringing a few of them in 1
2006 Jun 19
0
Coded Order vs Raster Order
Hey, I'm not sure which mailing list this belongs on most, please correct me if I'm on the wrong one. I'm working through the Theora spec and trying to build an implementation as I go along. I have a few questions that I couldn't quite work out from the spec or in any online information that I found. The first question I have is related to coded order vs raster order. I
2011 Nov 24
1
readGDAL or raster for reading bit map files
Dear all, I have asked yesterday of how I can read a simple bitmap file in R cran. I was suggest to use either readGDAL or raster for loading my bitmap a. I have done it with readGDAL like     store<-readGDAL(fname='lena256.bmp')     and it works,... but it converts my matrix-like notion of a bitmap to a large vector b. Raster also returns a class that I can not understand. So 1,
2013 Jun 23
1
Fault geology xyz to raster
Hi, I have a 3-d geology problem. I have an xyz fault data set. I am able to view the data set in R using plot3-d but cannot create a raster from it. I need to create a raster and export so that it can be read in arcscene. Can anybody help? Thanks -- Shane [[alternative HTML version deleted]]
2013 Oct 24
1
Plot.raster hides the axis layer
Hi all, I am trying to plot a raster object (I can explain why but the point is that it would be a raster objeçt).. I have selected a small code to show you exactly the problem require(raster) test<-matrix(data=runif(10000),nrow=100) m<-raster(test) plot(m,axes="FALSE") axis(1,at=c(0,1),labels=c("a","b")) # THIS DOES NOT CHANGE THE INVISIBLE AXIS WHILE