search for: recordedplot

Displaying 13 results from an estimated 13 matches for "recordedplot".

2018 Apr 02
3
recordPlot/replayPlot not working with saveRDS/readRDS
...for a simple plot png('test.png') dev.control(displaylist ="enable") plot(1:5, 1:5) r <- recordPlot() dev.off() # Replay plot. This works. png('test1.png') replayPlot(r) dev.off() # Save the plot and load it, then try to replay it. This does not work. saveRDS(r, 'recordedplot.rds') r2 <- readRDS('recordedplot.rds') png('test2.png') replayPlot(r2) ## Error: NULL value passed as symbol address dev.off() Is there something that I'm doing wrong here?
2018 Apr 03
1
[FORGED] recordPlot/replayPlot not working with saveRDS/readRDS
>>>>> Paul Murrell <paul at stat.auckland.ac.nz> >>>>> on Tue, 3 Apr 2018 09:41:56 +1200 writes: > Hi What you are doing "wrong" is loading a recordedplot > into the same session that it was created in. The > saveRDS()/readRDS() works if you save in one R session and > then read in a different R session. The assumption is > that if you are still in the same session that created the > recordedplot you still have th...
2008 Apr 21
1
Use of recordPlot
...to plot to place several plots on a page. I want to store the plots as variables to be able to recall them later. The documentation states: "Recorded plot histories are of class "SavedPlots". They have a print method, and a subset method. As the individual plots are of class "recordedplot" they can be replayed by printing them: see recordPlot. The active plot history is stored in variable .SavedPlots in the workspace." But what does this mean "class SavedPlots"? Is class similar to a class in C++? Where are the plot() and metafile(), etc methods for this class...
2018 Apr 02
0
[FORGED] recordPlot/replayPlot not working with saveRDS/readRDS
Hi What you are doing "wrong" is loading a recordedplot into the same session that it was created in. The saveRDS()/readRDS() works if you save in one R session and then read in a different R session. The assumption is that if you are still in the same session that created the recordedplot you still have the recordedplot (e.g., you can just do re...
2013 Sep 13
1
inconsistency/bug in recordPlot/replayPlot
...y all, I've run accross what seems to be a bug in the recordPlot/replayPlot functionality (or at least the lack of a feature which seems pretty reasonable to expect to be there) When drawing to a file-based graphics device (I tested with png()), the file resulting from calling replayPlot on a recordedplot object does not contain an identical image to that captured by the same graphics device when used on the plot that was recorded. Reproducible (at least for me on linux) example: png("noreplay.png") plot(1:10) dev.off() plot(1:10) recplot = recordPlot() png("withreplay.png") r...
2012 Jan 09
1
serializing recordedplot object
...orm(100)); x <- recordPlot(); saveRDS(x, "myplot.rds"); y <- readRDS("myplot.rds"); print(y); Error: NULL value passed as symbol address printing x works fine, but printing y either gives an error or prints an empty page. The problem seems to be related to serializing the recordedplot object, which contains a lot of memory pointers. Any tips or workarounds? > sessionInfo() R version 2.14.1 (2011-12-22) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8...
2004 Sep 01
1
Advice on good programming practice, lexical scope
In "An Introduction to R" (See R help menu), there is an example of a function 'open.account' that makes use of the lexical scope in R. I have a set of functions that can be used to output R tables and graphics into a single report document. (I am aware that several tools can do this already). While reorganizing my code, I realize that I can collect my functions in a list, in
2001 Jun 20
0
recordPlot usage: add snaps to a list.
...[11] "displaylist" "gpar" "displaylist" "gpar" "displaylist" but i can''t see how to access the snapshots from replayPlot(). Adding the images into the list flattens them and makes the class of the items no longer equal "recordedplot". > replayPlot(pictureList[[1]]) Error in if (class(x) != "recordedplot") stop("argument is not of class \"recordedplot\"") : missing value where logical needed -- Paul E. Johnson email: pauljohn at ukans.edu Dept. of Political...
2004 Nov 30
1
RecordPlot
I want to do a zoom with recordPlot(). I have problems with lists. (R-2.0.1 patched 2004-11-30 , various linux). I have problems with RecordPlot class structure. > plot(1:10) > saveP <- recordPlot() > dev.off() > sx <- saveP[[1]][[2]][[2]] > saveP[[1]][[2]][[2]] <- sx Error in "[[<-"(`*tmp*`, 1, value = list(list( .Primitive("plot.new")),
2008 Apr 21
5
Documentation General Comments
...reorganizaton. A good through description of basic variable types would help a lot, e.g. the difference between lists, arrays, matrices and frames. And, it appears there is some object-orientation to R, but it is not complete. I can't, for instance find a "metafile" method for a "recordedplot" type, using either the variable direclty or the replayPlot() method. I am sorry to post this, but I am really having trouble sorting out certain methods in "R". The basic tutorial "Introduction to R" is so basic, it hardly helps at all, then digging through documentation i...
2014 May 10
1
Replay plot not allowed across sessions.
...nient for me since I story many, say 1000 to 1500 diagnostic plots per session. Georgely Daroczi has a nice hack in Rapporter//pander which it makes it possible to replay a single bad plot by hacking the data structure so as to change an offending part. Not surprisingl.doing this to all my saved recordedplot objects produces a corrupt R state online, after all this is why this was removed i.e. it causes problems. Does somebody know exactly what the problem is with the current Data Structure so that using it after a load from the disk can lead to corruption of R. I would like to work on fixing this i...
2024 Feb 22
1
Extracting Plot Arguments
...ect. However, in this class we are using base R and I need to extract information from base-r graphics. I've tried several different approaches, but I'm not sure which one is the easiest and most effective. Has anyone ever tried this? Are there any packages to help with this? (1) Storing `recordedplots` objects and trying to extract information from them. This data structure felt very low level, and I wasn't sure how easy it was to map the results to user-level function calls. (2) Use the `svglite` device to produce svg files, which can be parsed. This also worked, but required a lot of cod...
2007 Jul 23
2
doubt about options(graphics.record=T)
Hi all, I've been using R under WindowsXP. So, where the R stores the graphic archives (don't saved) if I use the option options(graphics.record=T) inside of Rprofile.site file? Regards, -- /////\\\\\/////\\\\\/////\\\\\/////\\\\\ Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Titular joseclaudio.faria em terra.com.br joseclaudio.faria em