Displaying 20 results from an estimated 14000 matches similar to: "Multiple graph pages"
2002 Sep 29
2
Problem on minima
2002 Feb 25
4
replace NAs
Dear R community:
it is possible to replace NA?s in a data frame with zeroes?
what should I do?
Thanks in advance
Juan Pablo
_________________________________________________________________
MSN Photos es la manera m?s sencilla de compartir e imprimir sus fotos:
http://photos.latam.msn.com/Support/WorldWide.aspx
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2002 Mar 29
2
order()
Hi,
In the order() help file, there is an example like:
a <- c(4, 3, 2, NA, 1)
b <- c(4, NA, 2, 7, 1)
z <- cbind(a, b)
(o <- order(a, b)); z[o, ]
How can I do something like "order a in ascending order, b in descending
order"? And say I have a third vector c, and I'd like to add this to the
previous condition "a ascending, b descending, c
2002 Mar 18
4
Plot 3d
There exists a plot 3d functions (or similar) in R?
Thanks,
========================================
Cezar Freitas (ICQ 109128967)
IMECC - UNICAMP
Campinas, SP - Brasil
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
2002 Mar 19
5
matrix with fix number columns but variable number rows
I have to store a number of vectors of the same length. I know the
length but I do not know the number of vectors.
How can I store them as they are created (they are created one by one)?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2002 Mar 20
3
tex/latex output?
Is it possible to write the output/results (redirect) to a latex file?
Jeff.
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
jeff_hamann at hamanndonald.com
www.hamanndonald.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2002 Aug 20
4
plot and bg
Hi all,
I would like to plot some points and define the bg color of my graphics.
But the bg parameter set is defined for the. whole graphic.
In fact, i would like to use something like :
box(bg=gray(0.9)).
So, the background concerns only the plot region and not the main
title, the x title and the y title.
The option col for the function box() concerns the contour and there is
no option
2002 Mar 27
2
Need suggestions for nice handling of MANY plots
I have a collection of SAS code that helps people review large
amounts of data on a regular basis. It does this by using SAS's proc
gplot with a "by" statement to prepare as many as 400 (yes, 400)
separate graphs. The code is run on a remote unix host, and displayed
on the reviewer's local desktop using X11 and SAS's display manager.
The process is initiated from a web
2003 Jan 06
1
On nlm
Dear all, I have to minimize a (real) function in a loop (say i in
(1:1000)) and store its ``$estimate'', via
l2estim<-nlm(f.minimo,c(-.01,0.1))$estimate
into a vector for further analisys.
Since the function's behaviour is quite peculiar (in the sense that in
the simulation study it may not have a minumum), sometimes I get the the
warning
Error in nlm(minimo, c(-0.01, 0.1),
2006 Nov 29
4
rm() deletes 'c' if c('a','b') is the argument (PR#9399)
Full_Name: Lixin Han
Version: 2.4.0
OS: Windows 2000
Submission from: (NULL) (155.94.110.222)
A character vector c('a','b') is supplied to rm(). As a result, 'c' is deleted
unintentionally.
> a <- 1:5
> b <- 'abc'
> c <- letters
> ls()
[1] "a" "b" "c"
> rm(c('a','b'))
> ls()
character(0)
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 that recordPlot() should be able to
2000 Jun 22
1
R 1.1 congrat; undocumented behaviour of recordPlot
Hello,
first, I'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)
>
2005 Mar 09
3
function in order to plot the same graph to postscript and pdf
Hi,
I've written a function in order to plot the same graph in a postcript and in
a pdf file. Unfortunately, the second graph is always empty, i.e.:
plot.both <- function{myplot, filename}{
pdf(file=paste(filename, ".pdf", sep=""))
myplot
dev.off()
postscript(file=paste(filename, ".eps", sep=""))
myplot
dev.off()
}
yields in a
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")),
2016 Sep 05
2
How to print UTF-8 encoded strings from a C routine to R's output?
Dear R experts,
It seems that Rprintf has to be used to print from a C routine to guarantee
to write to R?s output according to
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Printing.
However if a string is UTF-8 encoded, non-ASCII characters (e.g., the
infinity symbol http://www.fileformat.info/info/unicode/char/221e/index.htm)
are misprinted.
Is this an unsupported feature or is
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)
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
2014 May 01
2
Request to Replace Recordplot ,, replayplot
Record 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
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));
x <- recordPlot();
saveRDS(x, "myplot.rds");
y <-
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 example:
# Save displaylist for a simple plot