[R] How to navigate (zoom, pan) in a plot/graph

2011-08-21 Thread Eran Eidinger
Hello all, I need to zoom in and out and "travel"(pan) inside a plot, like you can do on a Matlab plot. If possible, I would also like the option to use the mouse to set a marker on the graph and get the (x,y) data for it, again, like in Matlab. Is this possible in R with the regular packages, o

Re: [R] How to navigate (zoom, pan) in a plot/graph

2011-08-21 Thread Eran Eidinger
Thank you Uwe, That solves the second question. Still looking for some solution to zooming in and out dynamically. Eran. 2011/8/21 Uwe Ligges > > > On 21.08.2011 10:17, Eran Eidinger wrote: > >> Hello all, >> >> I need to zoom in and out and "travel"(pan

[R] Passing a large amount of parameters to a function

2011-08-24 Thread Eran Eidinger
Hello, I have a function with a long list of parameters (of different types, numeric and string) myFunc <-function(p1, p2, p3, p4, p5...etc) { do.something(p1,p2,) } I want to loop over this to provide a different set of parameters to the list every time. for (ii in 1:N) { myFunc(p1(i

[R] debugging functions in R

2011-08-24 Thread Eran Eidinger
Hi, I am not sure if this is the right list to ask this question (though I did not find a more appropriate one). I've started using R a month ago, and small scripts work fine. However, when I start writing more complex code, it gets messy. 1. Is there any way to debug "normally", with breakpoints

Re: [R] debugging functions in R

2011-08-24 Thread Eran Eidinger
ction(df) > > And you'll be brought into the same interactive browser. (its Vi if im not > mistaken which can take a little getting used to.) > > > Justin > > > > On Wed, Aug 24, 2011 at 7:29 AM, Liviu Andronic wrote: > >> On Wed, Aug 24, 2011 at 4:20 PM, E

[R] R-Studio Question

2011-08-30 Thread Eran Eidinger
Hello, I've switched to R studio from the StatET Eclipse plug-in. I have a question regarding navigating between plots. When I use x11() or windows() new devices are created and I know how to switch back and forth between them. However, when I plot on the device that stands for R-Studio's built-i

Re: [R] R-Studio Question

2011-08-30 Thread Eran Eidinger
there are back and forward arrows. You can use > those (like a browser). > > This might have been better asked on the R-Studio forums. They're very > friendly. > > best > > iain > > --- On Tue, 30/8/11, Eran Eidinger wrote: > > > From: Eran Eidinger

[R] Namespace in packages

2011-08-31 Thread Eran Eidinger
et "Error in namespaceExport(ns, exports) : undefined exports: h"/ What am I doing wrong? (BTW, side question, if, after loading, i overload f() or g() with a new definition from the R console, will h() be affected?) Thanks, Eran Eidinger. [[alternative HTML version deleted]] _

Re: [R] Namespace in packages

2011-09-01 Thread Eran Eidinger
Yes, the package works fine without the NAMESPACE file, and all 3 functions are visible. On Thu, Sep 1, 2011 at 2:02 PM, Duncan Murdoch wrote: > On 11-09-01 2:27 AM, Eran Eidinger wrote: > >> Hello, >> >> I wonder how I might create a package that only reveals some of t

[R] capturing a figure to PDF or Image

2011-09-05 Thread Eran Eidinger
Hello, I've been using jpeg(), bmp() and pdf() to capture plots. I've used the parameter "at" in a plot, to define the tickmarks. It works fine on screen, but when I try to print it to a file, it gives a warning: "at" is not a graphical parameter and prints an empty figure. Can you help? Than

Re: [R] capturing a figure to PDF or Image

2011-09-05 Thread Eran Eidinger
Sorry guys, just removed, the "at" prameters. The warnings are gone now, but I still get an empty image, no matter which function i use (pdf, jpeg, bmp...) Any clue? Thanks, Eran. On Mon, Sep 5, 2011 at 6:09 PM, Eran Eidinger wrote: > Hello, > > I've been using jp

Re: [R] capturing a figure to PDF or Image

2011-09-05 Thread Eran Eidinger
Thanks, Eran. On Mon, Sep 5, 2011 at 6:20 PM, Sarah Goslee wrote: > Hi Eran, > > To be able to help, we need at a minimum a reproducible example and the > output of sessionInfo(). > > Sarah > > On Mon, Sep 5, 2011 at 11:14 AM, Eran Eidinger wrote: > &g

Re: [R] capturing a figure to PDF or Image

2011-09-05 Thread Eran Eidinger
The text seems to be white, reformatted: On Tue, Sep 6, 2011 at 8:53 AM, Eran Eidinger wrote: > Thank you Sarah and David, > > I only used a simple plot, and remembered to dev.off(). > attached is the session: > > > plot(c(1,2,3),c(3,2,4))> jpeg("test.jpg"

Re: [R] capturing a figure to PDF or Image

2011-09-06 Thread Eran Eidinger
Thank you. On Sep 6, 2011 4:45 PM, "Sarah Goslee" wrote: > Eran, > >> On Tue, Sep 6, 2011 at 8:53 AM, Eran Eidinger wrote: >>> >>> Thank you Sarah and David, >>> I only used a simple plot, and remembered to dev.off(). >>> attached is

[R] Poly-phase Filters in R

2011-09-07 Thread Eran Eidinger
Hello List, I am trying to do the following: 1. Use a BandPassFilter h[n] on a series x[n] 2. Then Decimate the series by a factor D such that y[k]=x[k*D] The decimation factor is considerable (10,000) so that filtering before the decimation, using convolve(), seems foolish. Can you think of an R

[R] completing missing samples

2011-09-12 Thread Eran Eidinger
Hello, I have a time-series that has some missing samples. I was thinking on completing them using either zero-order hold or linear interpolation. I am looking for an efiicient way (other than a loop...) of identifiying the missing time slots and filling them. Can you think of any methods that mi

Re: [R] completing missing samples

2011-09-18 Thread Eran Eidinger
om = first(time(x)), to = last(time(x)), by = > min(diff(time(x > > xNew = xts(rep(NA,length(tx)), tx) > xNew[time(x)] <- x > > then fill xNew as before. > > Hope this helps, > > Michael Weylandt > > On Mon, Sep 12, 2011 at 4:42 AM, Eran Eidinger wrote: >

[R] using a dictionary in R

2011-10-19 Thread Eran Eidinger
Hi all, Is there a way to create a "dictionary" in R, such that it has pairs? Something to the effect of: x=dictionary(c("Hi","Why","water") , c(1,5,4)) x["Why"]=5 In truth I'm looking two categorial variables function. So that if x=dictionary(c("a","b"),c(5,2)) x val 1 a 5 2 b 2 I want to c

[R] Having a problem with R installation as a shared library

2012-03-05 Thread Eran Eidinger
Hello All, I suspect I am having a problem with my R installation, something that has to do with "--enable-R-shlib". Can someone explain if this is something that I can fix using apt-get? More specifically: I am having trouble getting installing the RHive package. I Installed R from scratch, fo