Displaying 20 results from an estimated 1000 matches similar to: "viewing Postscript file"
2004 Sep 03
2
debugging an S4 method
Does anyone know how to use the equivalent of debug() on an S4 method? I would like R to enter the browser not for the generic function, but for the method of the class that I specify.
Thanks,
David
_____________________________
David Bickel http://davidbickel.com
Research Scientist
Pioneer Hi-Bred International
Bioinformatics & Exploratory Research
7250 NW 62nd Ave., PO Box 552
Johnston,
2005 Feb 22
2
estimate the parameter of exponential distribution, etc.
Given a numeric vector of observations, does R have any generic way to estimate the parameters of commonly used distributions (exponential, gamma, etc.) without numerically optimizing the likelihood function?
Thanks,
David
_______________________________________
David R. Bickel http://davidbickel.com
Research Scientist
Pioneer Hi-Bred International
Bioinformatics & Exploratory Research
7250
2004 Aug 31
2
enter browser on error
Is there a way I can get R to automatically enter the browser inside a user-defined function on the generation of an error? Specifically, I'm trying to debug this:
Error in as.double.default(sapply(lis, FUN)) :
(list) object cannot be coerced to double
In addition: There were 38 warnings (use warnings() to see them)
> traceback()
8: as.double.default(sapply(lis, FUN))
7:
2004 Jun 04
1
running R command in the background
Is there a way to call an R function to work in the background within the same R session? What I have in mind is the equivalent of adding '&' at the end of a UNIX command, so that R can process an intensive command while I execute other R commands. I want to do this in the same R session, rather than with multiple calls to R, so that all my modified objects will stay in the same
2004 Aug 02
2
random seed puzzle
After reading the help page on set.seed, I am unsure about how to solve the following problem. I need to call function f a thousand times. The list of values returned by f, should be as random as possible. f calls g twice:
f <- function(){g1 <- g(1); g2 <- g(2); c(g1; g2)}
The function g in turn calls sample and returns a number, but also depends on its argument, so, starting from the
2006 Sep 29
2
GLM information matrix
Is there a function that provides the Fisher information matrix for a
generalized linear model? I do not see how to access the off-diagonal
matrix elements of the value returned by glm. (I'm particularly
interested in logistic regression.)
If not, what is a good way to use R to compute Hessians or other partial
derivatives of log likelihoods?
I would appreciate any guidance.
David
2004 May 12
4
non-interactive call to R (running an R package as a stand-alone application)
Is there a way I can have R automatically execute the commands in a source file without ever having to use R interactively? If so, what arguments should I pass to the UNIX call to R? I need to do this to run several R jobs in parallel.
An alternative may be to have R and an R package behave as a stand-alone application that can be called from the UNIX command line. Is there any documentation on
2005 Dec 23
2
convolution of the double exponential distribution
Is there any R function that computes the convolution of the double
exponential distribution?
If not, is there a good way to integrate ((q+x)^n)*exp(-2x) over x from
0 to Inf for any value of q and for any positive integer n? I need to
perform the integration within a function with q and n as arguments. The
function integrate() is giving me this message:
"evaluation of function gave a
2005 Nov 10
1
order statistics / sample quantiles
Are there any R functions or packages that can compute distributions,
expectations, or quantiles of order statistics (or sample quantiles or
extreme values) for a given distribution such as a normal distribution?
Both exact and asymptotic calculations are of interest. I am already
aware of the 'quantile' function of 'stats'.
David
_______________________________________
David R.
2004 May 05
1
Installation on Windows XP
R never gave me any serious problems until I tried to use it on Windows XP. I had 1.8.1 installed and working successfully for a few weeks. This morning when I launched it, I received this error message: "R for Windows GUI front-end has encountered a problem and needs to close. We are sorry for the inconvenience."
I downloaded 1.9.0 and installed it, but when I launch it, I get this
2008 Jul 06
2
Issue with postscript figures using WinAnsi encoding
Hi there,
I've hit a bump in writing postscript files with special characters in
the WinAnsi encoding on a windows machine.
Here's some sample code:
###########################################
postscript(file = "test.eps", encoding="WinAnsi.enc",
width = 3, height = 5.5, onefile = TRUE, horizontal=FALSE, family =
"sans",
title =
2007 Aug 02
2
plot to postscript orientation
Hi
I am trying to save some plots in a postscript file. When I generate the
plots in the main window, they appear correctly - their orientation is
landscape (i.e., horizontal). However, when I open the .ps file with GSview,
the whole page appears vertically, and the plot appears horizontally, which
means that the plot is only partially visible (example here
2004 Jun 14
4
interrupt in Linux
Does anyone know how to interrupt R in RedHat? Neither control-c nor Esc is working. What I don't want to do is close the window or kill the entire R process.
Thanks,
David
This communication is for use by the intended recipient and ...{{dropped}}
2010 Jul 14
3
Mathematica and R
What are some effective ways to leverage the strengths of R and
Mathematica for the analysis of a single data set?
More specifically, are there any functions that can assist with any of
the following?
1. Calling an R function from Mathematica.
2. Calling a Mathematica function from R.
3. Using XML or another reliable data format to pass vectors, matrices,
and/or lists from one environment to
1999 Jul 27
3
Summary - Re: R-Graphics
Thanks to all who replied. Mostly the suggestion was to add the argument
horizontal= FALSE to the postscript function. However, I was trying to
generate a landscape graph. The "fault" lies with gs as Peter Dalgaard
pointed out. Under Windows 95, gsview has an option to view landscape or
portrait and therefore this problem does not arise on that platform.
2006 Jun 09
1
Postscript output encoding on Windows
With R 2.3.1 on Windows, I've noticed that it defaults to the
"WinAsci.enc" encoding, which throws up an error when viewed with the
default install of GhostScript/GSView (versions 8.51/4.7 respectively).
I didn't have this problem prior to upgrading to 2.3.1 as I can view all
my old PS graphs and they don't have the WinAsci encoding. I've got
around this problem by
2005 Aug 22
1
Example in pdf() help file (PR#8083)
The example in the help file for pdf() plots the characters outside
the plotting area in this for loop:
for(i in c(32:255)) {
x <- i
y <- i
points(x, y, pch=i)
}
The following loop seems to be working as intended
for(i in c(32:255)) {
x <- (i-31)%%16
y <- (i-31)%/%16
points(x, y, pch=i)
}
As an extra
2003 Sep 26
1
empty postscript output of figures
Hi,
I have a puzzeling problem. I want to export graphics from R to TeX via
postscript(). This works fine for some graphs, but for others, the eps
remain empty when viewed with GSView. When such an empty eps is imported
to TeX, the figure appears upside down and very small, irrespective of
TeX width and height commands. If I transform the eps to pdf, the
graphic shows up, but turned aqround 90°.
2006 May 15
1
PDF viewer?
Hi,
I'm looking for a usable PDF viewer with CentOS 4.3. On my previous install
(Slack running XFCE with a handful of GNOME libs), I used Evince, which is just
great. Looks like this is an Achilles' heel in CentOS, as I tested three
available PDF viewers (ggv, gsview, acroread) with various PDF documents
downloaded from the internet (which all display perfectly with Evince): either
the
2000 Oct 04
5
postscript preview
gday R friends,
I was wondering if anyone could help me with some graphics issues please.
I'm processing R in batch on redhat6.2 with some graphics to be imported
into msword on NT. For scaling within my doco I want some vector type
graphics. win.metafile doesn't seem to be supported on redhat which gives
me postscript. postscript is ideal but doesn't contain a preview so I