similar to: readPNG gives warnings and doesn't execute sample code from help files

Displaying 20 results from an estimated 900 matches similar to: "readPNG gives warnings and doesn't execute sample code from help files"

2011 Feb 15
1
Cairo device won't output the PNG
Hi All, I have been experiencing a strange issue ever since I upgraded my R and the packages. I cannot plot anything to the CairoPNG device.For an example:> Cairo(600, 600, file="plot.png", type="png", bg="white")> plot(1:10)> dev.off()will create an empty plot.png file. I am running R 2.12.1 (32bit) on Windows 7 (64bit). ----------------------------->
2010 Nov 29
1
Sweave choking on \\ in filename
Dear all, Sweave chokes when using "\\" in the path to the Rnw file. Using "/" works fine. The problem is that Eclipse+StatET uses "\\" in the filename. And example of the error, traceback and sessionInfo are given below. Best regards, Thierry > Sweave("Q:\\BMK\\cursussen\\interne_opleiding\\deelnemerslijst.Rnw", syntax="SweaveSyntaxNoweb")
2011 Nov 16
2
strange behavior from cex="*"
Someone inquired on StackOverflow about apparently non-deterministic graphics behaviour in R. I noticed that they were using cex="*" and discovered some potentially weird behavior. On repeated runs of the same code I can get different PNGs. If I set the number of runs high enough, I seem to be able to get R to hang. If I do a single version plotting to an interactive graphics
2011 Feb 08
1
Error in example Glm rms package
Hi all! I've got this error while running example(Glm) library("rms") > example(Glm) Glm> ## Dobson (1990) Page 93: Randomized Controlled Trial : Glm> counts <- c(18,17,15,20,10,20,25,13,12) Glm> outcome <- gl(3,1,9) Glm> treatment <- gl(3,3) Glm> f <- glm(counts ~ outcome + treatment, family=poisson()) Glm> f Call: glm(formula = counts ~
2011 Jan 09
1
Rectangle height in lattice xyplot key
Dear All I have a problem with the height of the boxes in the key in the following. (The text is over 2 lines to accentuate the problem of no space between the rectangles.) Is there an easy way to put a space between the rectangles; size controls the width but there appears to be nothing for the height? xyplot(1~1, key = list(corner = c(0.8,0.8),
2011 May 12
2
Change font size in Windows
My day for dumb questions. How do I increase the type size in the Rgui console in Windows? (R-2.13.0, Windows 7) It looked to me that I just needed to change the font spec in Rconsole but that does not seem to be working. The R FAQ for Windows has a reference in Q3.4 to changing fonts, (Q5.2), but I don't see anything relevant there. Rconsole originally was: font = TT Courier New points =
2010 Nov 11
3
User input after opening graphing device
If I run the following: > windows() > > bringToTop(-1) > > interactive() [1] TRUE > > run <- readline(prompt = "Continue (Yes = 1, No = 2):") Continue (Yes = 1, No = 2): > dummy <- 1 > run [1] "" it does not allow user input though the session is interactive (it jumps right over the readline command). It would be great
2011 Dec 17
1
odfWeave error
I am new to using odfWeave but I have encountered a problem running both the example in the help file as well as another file.? I am not sure how to correct the error. First example: library(odfWeave) filein <- 'c:\\my documents\\example01_in.odt' fileout <- 'c:\\my documents\\example01.odt' odfWeave(filein, fileout, control = odfWeaveControl(cleanup = T)) error:
2011 Dec 16
1
odfWeave
I am new to using odfWeave but I have encountered a problem running both the example in the help file as well as another file. I am not sure how to correct the error. First example: library(odfWeave) filein <- 'c:\\my documents\\example01_in.odt' fileout <- 'c:\\my documents\\example01.odt' odfWeave(filein, fileout, control = odfWeaveControl(cleanup = T)) error:
2011 Jul 19
2
strange problem with strptime and date variable
Hello all, I am manipulating a large database with 70,000 records. "strptime" generates a date variable but R treats some of the values as NA. I attach a simple example below. I have spent hours on this problem. Any hint would be greatly appreciated. Many thanks, Edwin Sun # =======start of sample code ============= > x <- c("2005-04-02 19:03:00", "2005-04-03
2011 May 12
2
Simple order() data frame question.
Clearly, I don't understand what order() is doing and as ususl the help for order seems to only confuse me more. For some reason I just don't follow the examples there. I must be missing something about the data frame sort there but what? I originally wanted to reverse-order my data frame df1 (see below) by aa (a factor) but since this was not working I decided to simplify and order by
2011 Jan 18
2
ggplot2, geom_hline and facet_grid
Hi I have a long data set on which I want to do Bland-Altman style plots for each rhythm type Using ggplot2, when I use geom_hline with facet_grid I get an extra set of empty panels. I can't get it to do it with the "Diamonds" data supplied with the package so here is a (much abbreviated) example: > lvexs cvd_basestudy ecd_rhythm fixed_time variable_time 1 CBP05J02
2012 Jan 06
1
ggplot using scale_x_date gives Error in seq.int(r1$year, to$year, by)
Dear all, ggplot gives me an error when trying to plot time series data using a date variable as the x axis. g<-structure(list(Date = c("2011-12-23", "2011-12-30", "2012-01-06", "2011-12-23", "2011-12-30", "2012-01-06", "2011-12-23", "2011-12-30", "2012-01-06"), variable = structure(c(1L, 1L, 1L, 2L, 2L,
2011 Sep 23
1
spatstat => owin + image
Dear Community I am at my wits end and seek advice. My wish is to plot coordinates (x,y in WGS84_UMTS for the ones interested) of sampling points. This I can do by the standard spatstat prodcedure via owin. I then try to add an image, which is a map/satellite photo in the background. Firstly Problem: With the current code, I can not get the edges of the image to match the boarders of the plot
2011 Feb 15
1
Using rasterImage on a CairoWin device prevents adding further elements to device?
I was pointed to the Cairo package for plotting PNG images on a device. I've been playing around with it, but found that after I use the rasterImage function, I can't add anything any more to the device, eg : img <- readPNG(system.file("img", "Rlogo.png", package="png")) r = as.raster(img[,,1:3]) r[img[,,4] == 0] = "white" CairoWin()
2011 Jun 20
0
R crashes with 'nlme' and corStruct
Hello, I would like to fit correlation structures with nlme, but R crashes. My data is similar to the "growth of orange trees" example from Pinheiro and Bates (2000), but data are not equally spaced in time, as the last observation is taken after 6 days ( and not 2 as the others). This is the code I'm using: library(nlme)
2011 Jan 21
1
Reading gz compressed csv file - 'incomplete line found'
Hi all, I am trying to download, decompress and read a csv file. My code: myurl <- "ftp://ftp.ncbi.nih.gov/pub/geo/DATA/supplementary/series/GSE24729/GSE24729_MitoNuclear_suppl_male_stats.csv.gz" # myfile <- "GSE24729_MitoNuclear_suppl_male_stats.csv.gz" # download.file(myurl, destfile=myfile, mode="w") # mycon <- gzcon(gzfile(myfile,
2011 May 11
2
changes in coxph in "survival" from older version?
Hi all, I found that the two different versions of "survival" packages, namely 2.36-5 vs. 2.36-8 or later, give different results for coxph function. Please see below and the data is attached. The second one was done on Linux, but Windows gave the same results. Could you please let me know which one I should trust? Thanks, ...Tao #####============================ R2.13.0,
2012 Mar 30
1
lubridate:ymd_hm and coercion of class POSIXct. Smooth way to restore the date format.
Dear all, I wish to create a POSIXct variable from date and time variables using the ymd_hm function in package lubridate. In some cases data for time is missing, which causes a problem for ymd_hm. I wish to find a smooth way to handle this. # Some example data: x <- data.frame(date = c("2011-09-22", "2011-07-28"), time = c("15:00", NA)) x # paste date and
2010 Jul 15
1
Send code to R from WinEdt55
R Gurus: This sounds not a FAQ. I upgraded WinEdt from 5.4 to 5.5 , following load RWinEdt, R-WinEdt editor appears. There are more menu items and task icons in this version, but I failed to find a pull down menu or task icon to send code to R. What did I miss? > sessionInfo() R version 2.11.0 (2010-04-22) i386-pc-mingw32 locale: [1] LC_COLLATE=English_Canada.1252