search for: recordplot

Displaying 20 results from an estimated 69 matches for "recordplot".

2013 Sep 24
1
recordPlot() on non-interactive graphics device?
Hi. Q. Is there a way to record a plot using grDevices::recordPlot() without opening an interactive (=visible GUI window) graphics device (not even for a flash of a second)? Related: help("recordPlot", package="grDevices") says: "These functions record and replay the displaylist of the current graphics device." Is the intention th...
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*`,...
2000 Jun 22
1
R 1.1 congrat; undocumented behaviour of recordPlot
...;d like to congratulate the core team to the new R version 1.1. I think it's a great update, with glimpses into an even greater future (tcltk!). While playing around with the new functions (on Win 95), I found the following: As the documentation states, when I generate a plot and save it with recordPlot, I can regenerate it by printing the variable: > plot(1:10) > abline(h=5) > abline(v=5) > t.plot<-recordPlot() > t.plot works perfectly. Now, if I add further elements to this (regenerated) plot, they get drawn all right (I tested only abline()), which surprised me . But when I...
2000 Jun 22
0
Re: [R] R 1.1 congrat; undocumented behaviour of recordPlot (PR#578)
...the new R version 1.1. I > think it's a great update, with glimpses into an even greater future > (tcltk!). > > While playing around with the new functions (on Win 95), I found the > following: > > As the documentation states, when I generate a plot and save it with > recordPlot, I can regenerate it by printing the variable: > > > plot(1:10) > > abline(h=5) > > abline(v=5) > > t.plot<-recordPlot() > > t.plot > > works perfectly. > > Now, if I add further elements to this (regenerated) plot, they get drawn > all right (I...
2002 Nov 01
1
recordPlot in 1.5.x, replayPlot in 1.6.0 problem
I have plots that were stored using recordPlot() in a fairly recent but pre-1.6.0 version of R that will not replayPlot() in R 1.6.0. The error message is Error in replayPlot(x) : invalid hex digit in color or lty The plots were stored in June (2002-6-14), each as an element of a list named 'rpl'. The version of R that was curr...
2001 Jun 20
0
recordPlot usage: add snaps to a list.
I have trouble understanding the R list object and how to add objects and get them out. I''m trying to collect snapshots with recordPlot and replay them. Got great help from everybody here yesterday on my histogram function, works fine to make the pictures: histomatic <- function (s1,s2,s3,var){ if (is.numeric (s2[[var]])) { par(mfrow=c(3,1)); rz <- range(s1[[var]], s2[[var]], s3[[var]]); breaks <- pretty(rz,...
2008 Apr 21
1
Use of recordPlot
...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? And if it is saved as a SavedPlots class, then what is a...
2018 Apr 02
3
recordPlot/replayPlot not working with saveRDS/readRDS
The documentation for recordPlot says the following: > As of R 3.3.0, it is possible (again) to replay a plot from another R session using, for example, saveRDS and readRDS. However, I haven't been able to save and restore a plot displaylist and have it work within the same R session, using R 3.4.3 or 3.3.3. Here's an...
2014 May 01
2
Request to Replace Recordplot ,, replayplot
...cord plot which stores a plot to an internal R data structure and Replay Plot which replays the plot enables one to keep plots around and use them accross sessions at least until version 3. If you cannot restore old plots and treat them as data and save accross sessions, there is little reason for recordPlot. Either R needs to dispense with internal formats entirelly, a bad move in my opinion or revise the structure so that it can be read from a file and then replayed and augmented. This internal facility, in some ways equivalent to the matlab fig is good to have around. It would not be needed if on...
2013 Sep 13
1
inconsistency/bug in recordPlot/replayPlot
Hey 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 captu...
2018 Apr 02
0
[FORGED] recordPlot/replayPlot not working with saveRDS/readRDS
...ession. 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 replayPlot(r) instead of replayPlot(r2). Is that a bad assumption ? Paul On 03/04/18 05:23, Winston Chang wrote: > The documentation for recordPlot says the following: > >> As of R 3.3.0, it is possible (again) to replay a plot from another R session using, for example, saveRDS and readRDS. > > However, I haven't been able to save and restore a plot displaylist > and have it work within the same R session, using R 3.4.3...
2000 Jun 23
1
Re: undocumented behaviour of recordPlot (PR#578)
...0, p.dalgaard@biostat.ku.dk wrote: > I think this is pretty certainly a bug, so I'm cc'ing this to r-bugs. > > -p > > Kaspar Pflugshaupt <pflugshaupt@geobot.umnw.ethz.ch> writes: > > As the documentation states, when I generate a plot and save it with > > recordPlot, I can regenerate it by printing the variable: > > > > > plot(1:10) > > > abline(h=5) > > > abline(v=5) > > > t.plot<-recordPlot() > > > t.plot > > > > works perfectly. > > > > Now, if I add further elements to this (r...
2000 Jun 23
1
Re: undocumented behaviour of recordPlot (PR#578)
...0, p.dalgaard@biostat.ku.dk wrote: > I think this is pretty certainly a bug, so I'm cc'ing this to r-bugs. > > -p > > Kaspar Pflugshaupt <pflugshaupt@geobot.umnw.ethz.ch> writes: > > As the documentation states, when I generate a plot and save it with > > recordPlot, I can regenerate it by printing the variable: > > > > > plot(1:10) > > > abline(h=5) > > > abline(v=5) > > > t.plot<-recordPlot() > > > t.plot > > > > works perfectly. > > > > Now, if I add further elements to this (r...
2018 Apr 03
1
[FORGED] recordPlot/replayPlot not working with saveRDS/readRDS
...#39; passed to replayPlot() with its external pointers needs to be fixed up by x <- restoreRecordedPlot(x) or not. But that would be another topic I'd not get envolved deeply just now. Martin > Paul > > On 03/04/18 05:23, Winston Chang wrote: > > The documentation for recordPlot says the following: > > > >> As of R 3.3.0, it is possible (again) to replay a plot from another R session using, for example, saveRDS and readRDS. > > > > However, I haven't been able to save and restore a plot displaylist > > and have it work within the same...
2017 Feb 20
3
Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
Hi, I wonder if this is expected or I'm doing a wrong thing. pdf() dev.control('enable') library("grid") plot(1) grid.text("A") res = recordPlot() dev.off() cairo_pdf() replayPlot(res) dev.off() *** caught segfault *** address 0x4, cause 'memory not mapped' > sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: macOS Sierra 10.12.3 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US....
2014 Apr 30
0
ReplayPlot, limited to single session for RecordPlot()
R had an internal Plot format which could be saved in files and then reused. Just like one can save data.frames or lists of data which I routinely do could save plot which could be used for further elaboration and analysis. Thus you could modify a plot after you saved it. Matlab has a fig format which it uses for that purpose. The current version of R version 3 allows plots only to be used
2012 Jan 09
1
serializing recordedplot object
I use recordPlot() to save plots to disk that I render later to a variety of formats. This works fine for base R plots and ggplot2 plots, and also used to work for lattice plots. However somewhere in version 2.14 things stopped working for lattice plots. Here is an example: library(lattice); histogram(rnorm(100));...
2023 Oct 15
2
Plot to a device and examine the plot?
...rent device using dev.copy() and examine it there. It won't be pixel-by-pixel identical, but will contain the same components, likely with slightly different scaling and positioning if the new device isn't the same as the old one. You can also save the commands that drew the plot using recordPlot() and redraw it using replayPlot() (which is essentially what dev.copy() does), but the format of the object saved by recordPlot() is not documented, and is subject to change with R version changes. Duncan Murdoch
2006 Dec 18
1
Replay recorded plot with new layout
Folks, Please help with a graphics problem, I am running R2.4.0 on Windows XP. In much earlier version of R (1.3? about December 2001) I could par(mfrow=c(1,1)) plot(1,1,xlab="X",ylab="Y") plot1<-recordPlot() plot(2,2,xlab="X2",ylab="Y2") plot2<-recordPlot() par(mfrow=c(2,1)) plot1 plot2 and produce the same effect as the following (the above no longer produces this layout): par(mfrow=c(2,1)) plot(1,1,xlab="X",ylab="Y") plot(2,2,xlab=&quot...
2017 Feb 20
2
[FORGED] Re: Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
...ro_pdf() as the recording device, > and it crashes R as well, so it is probably not relevant to pdf() but > an issue specific to cairo_pdf(). > > cairo_pdf() > dev.control('enable') > > library("grid") > plot(1) > grid.text("A") > > res = recordPlot() > dev.off() > > cairo_pdf() > replayPlot(res) > dev.off() > > > Regards, > Yihui > -- > https://yihui.name > > > On Mon, Feb 20, 2017 at 10:24 AM, Yihui Xie <xie at yihui.name> wrote: >> Hi, >> >> I wonder if this is expected or I&...