search for: devasknewpage

Displaying 20 results from an estimated 20 matches for "devasknewpage".

2010 Jan 11
2
example() leaves console prompting to press Enter for new graphs
...> getOption("example.ask") [1] "default" # do another plot: > plot(sin, -pi, 2*pi) Waiting to confirm page change... > # reset option to FALSE > options("example.ask"=FALSE) > plot(sin, -pi, 2*pi) Waiting to confirm page change... # try resetting devAskNewPage > devAskNewPage(ask = NULL) [1] TRUE > plot(sin, -pi, 2*pi) Waiting to confirm page change... > There does seem to be code in example to reset this state on exit, and I'm baffled why it doesn't actually do it ... if (ask == "default") ask <- echo &...
2008 Nov 27
1
par(ask=TRUE) and devAskNewPage(ask=TRUE) not working
...some lines and texts to the plot. Third, do some further calculation, then.... Fourth, ..... After a plot is complete (means the plot itself, lines and texts) I would like to click 'enter' to see the next complete plot (again the plot itself, lines and texts) and so on. par(ask=TRUE) and devAskNewPage(ask=TRUE) is not working, unfortunately? Any Ideas? Regards -- View this message in context: http://www.nabble.com/par%28ask%3DTRUE%29-and-devAskNewPage%28ask%3DTRUE%29-not-working-tp20718320p20718320.html Sent from the R help mailing list archive at Nabble.com.
2010 Oct 21
1
gam plots and seWithMean
...rmula(as.formula(f1),~.+s(d)),poisson) anova(f1,f2) summary(f2) plot(f2) #the solid line s(d) dat<-data.frame(t,d,x1,x2,x3) datn<-transform(dat,d=0) dif<-predict(f2)-predict(f2,datn) cdif<-dif-mean(dif) points(d,cdif,cex=0.5,col=rgb(0,1,0,0.2)) #another approach to the solid line s(d) devAskNewPage(ask=T) plot(f2) premat2<-PredictMat(f2$smooth[[1]],data=dat) dim(premat2) pars<-f2$coef pars2<-pars[5:13] pars2<-as.matrix(pars2,9,1) pars2 points(d,premat2%*%pars2,cex=0.5,col=rgb(0,0.6,0.3,0.2)) #premat2%*%pars2 = cdif #confidence intervals when seWithMean = FALSE devAskNewPage(ask=T...
2009 Dec 21
1
proposal for new axis.Date/axis.POSIXct
...t;6 months", "1 year", "2 years", "5 years", "10 years", "20 years", "50 years", "100 years") names(steps) <- paste("span =", unlist(steps)) from <- as.POSIXct("2002-02-02 02:02") devAskNewPage(TRUE) lapply(steps, function(s) { times <- seq(from, by = s, length = 2) plot(0:1 ~ times, yaxt = "n", ylab = "") x <- mean(par("usr")[1:2]) text(x, 0.5, paste("span:", s), cex = 2) text(x, 0.33, paste(format(times), collapse="...
2009 Jan 02
1
How to capture multiple graph pages to .png ?
...argument to cro.zone.plot function.)") maxLayout <- c(0,length(unique(miniDataSet$splitCol))) png(filename = paste(as.character(plotFileName),".png",sep=""),width=(1.2*plotSize*(maxLayout[2]^(1/3))), height=(plotSize*(maxLayout[2]^(1/3)))) } else { devAskNewPage(ask = TRUE) maxLayout <- c(0,min(16,length(unique(miniDataSet$splitCol)))) } levelplot(dataCol ~ siteX * siteY | splitCol,data = miniDataSet, col.regions=rainbow(n=length(unique(miniDataSet$dataCol))+5,start=0.5,end=0.95), layout = maxLayout, shrink = c(0.6,1.1),...
2009 Oct 08
1
"ask=F" option with plot.gam
Hello. I'd like to plot only one component smooth function of a gam model (for example the second) (library mgcv). So, I did : plot(my.gam, select=2, ask=F) But plot.gam doesn't seem to understand the "ask" option, so I can't deactivate the interactive plotting. I tried and failed by forcing it through : par(ask=F) And the "page" option of plot.gam (automatic
2011 Feb 08
2
Stopping between multiple graphs
Hello. I would like to know if there is a command for stopping between multiple grpahs. I have a for in which I create a graph in each iteration. I would like R to wait for a click or an enter to pass to the next graph. Does anybody know how can this be done. Thank you Felipe Parra [[alternative HTML version deleted]]
2011 Nov 24
2
how to add "waiting for page change" to my script
I'd like to "step" through 24 histograms by using the return or click button option, as shown in the demo(graphics) demonstration. I've searched for "interactive graphics", and "waiting for page change" in R documentation but with no result. I'm sure that this is a relatively straightforward procedure. Can anyone point me to the correct solution?   Jabez
2008 Jun 18
1
example() and "ask"
Dear list, Is it intentional that example() opens a new device and leaves it in a mode where it asks (prompts) the user to Press return to see the next plot for *all* subsequent plots on that device. For example; with an already opened device, example() works as I would expect: > par("ask") [1] FALSE > example(lm) .... OUTPUT CLIPPED .... lm> plot(lm.D9, las = 1) #
2010 Apr 10
1
writing function (plot problem)
Hi, ======================= x=rnorm(20) y=rnorm(20) t=lm(y~x) plot(t) ======================= you will get "click or hit enter to next page..." how do I write a function to archieve this ? say plot(x,y) then pause, wait plot(y,x) Thanks! casper -- View this message in context: http://n4.nabble.com/writing-function-plot-problem-tp1835723p1835723.html Sent from the R help mailing
2011 Mar 12
1
par(ask=TRUE) in R CMD check?
Hello: What happens in the auto-checks on R-Forge and CRAN with code using par(ask=TRUE)? Is this routine, or can it create problems? The fda package uses ask=TRUE to provide the user with a way to examine a group of plots. In the past, I've marked those tests in \examples with \dontrun. However, I wonder if that is necessary. I tried it on Windows using R
2009 Dec 10
1
Moving Averages in ggplot2
Hello all, Have some time series data stored in a data.frame, and am plotting it with ggplot2 (which is totally awesome). I have explored the documentation and mailing list archives, and I can't see any way to plot a 'smoother' that is just the K-step moving average. For example, imagine I had a data.frame called 'sleep' with 'date' as the date (from as.Date()) and
2009 Jan 28
3
plot slideshow
Dear R experts: I've seen that it's possible to make a sort of "slideshow" with several R-plots (each slide is activated by a click on the mouse). How can I put this on a R-script??? Regards. D. [[alternative HTML version deleted]]
2023 Mar 15
0
R 4.2.3 is released
...) cannot dispatch, it no longer segfaults producing the error message in case of a long class(), thanks to Joris Vankerschaver's report (including patch) in PR#18447. * When example(foo, ..) produces graphics on an interactive device it needs to open itself, it now leaves devAskNewPage() unchanged even when it was FALSE, thus fixing a 14 years old '<FIXME>'. * packageDescription() again catches errors from encoding conversions. This also fixes broken packageVersion() in C locale on systems where iconv does not support transliteration. -- Pet...
2023 Mar 15
0
R 4.2.3 is released
...) cannot dispatch, it no longer segfaults producing the error message in case of a long class(), thanks to Joris Vankerschaver's report (including patch) in PR#18447. * When example(foo, ..) produces graphics on an interactive device it needs to open itself, it now leaves devAskNewPage() unchanged even when it was FALSE, thus fixing a 14 years old '<FIXME>'. * packageDescription() again catches errors from encoding conversions. This also fixes broken packageVersion() in C locale on systems where iconv does not support transliteration. -- Pet...
2023 Mar 15
0
R 4.2.3 is released
...) cannot dispatch, it no longer segfaults producing the error message in case of a long class(), thanks to Joris Vankerschaver's report (including patch) in PR#18447. * When example(foo, ..) produces graphics on an interactive device it needs to open itself, it now leaves devAskNewPage() unchanged even when it was FALSE, thus fixing a 14 years old '<FIXME>'. * packageDescription() again catches errors from encoding conversions. This also fixes broken packageVersion() in C locale on systems where iconv does not support transliteration. -- Pet...
2010 May 21
0
pretty.Date(): changes to axis() methods?
...step could be added. Here is an example of changing the number of requested ticks on an axis: (this example does not depend on R 2.12) source("http://svn.r-project.org/R/trunk/src/library/grDevices/R/prettyDate.R") times <- as.Date(c("2000-04-02", "2000-06-02")) devAskNewPage(TRUE) lapply(c(2,4,6,8,10,20,60), function(n) { plot(0:1 ~ times, type = "n", yaxt = "n", ylab = "") x <- par("usr")[1:2] text(x[1], 0.5, format(times[1]), pos = 4) text(x[2], 0.5, format(times[2]), pos = 2) text(mean(x), 0.05, "curren...
2013 Apr 03
0
R 3.0.0 is released
...(), tkfile.tail(), tkopen(), tkputs(), tkread(), trySilent() and zip.file.extract() have been removed entirely (but are still documented in the help system). o The unused dataPath argument to attachNamespace() has been removed. o grid.prompt() has been removed: use devAskNewPage() instead. o The long-deprecated intensities component is no longer returned by hist(). o mean() for data frames and sd() for data frames and matrices are defunct. o chol(pivot = FALSE, LINPACK = TRUE), ch2inv(LINPACK = TRUE), eigen(EISPACK = TRUE), solve(LINPACK =...
2013 Apr 03
0
R 3.0.0 is released
...(), tkfile.tail(), tkopen(), tkputs(), tkread(), trySilent() and zip.file.extract() have been removed entirely (but are still documented in the help system). o The unused dataPath argument to attachNamespace() has been removed. o grid.prompt() has been removed: use devAskNewPage() instead. o The long-deprecated intensities component is no longer returned by hist(). o mean() for data frames and sd() for data frames and matrices are defunct. o chol(pivot = FALSE, LINPACK = TRUE), ch2inv(LINPACK = TRUE), eigen(EISPACK = TRUE), solve(LINPACK =...
2009 Jan 28
2
t.test in a loop
Hi All, I've been having a little trouble with creating a loop that will run a a series of t.tests for inspection, Below is the code i've tried, and some checks i've looked at. I've used the get(paste()) idea as i was told previously that the use of the eval should try and be avoided. I've run a single syntax to check that my systax is correct and works without any problems