[R] A question about corAR1 and grouping

2016-01-06 Thread Saptarshi Guha
Using R" and it i must have confused it for the weights(e.g. varIdent) where there are indeed group(strata) specific estimates. Is there a way to include correlations and have group specific estimates? Regards Saptarshi __ R-help@r-project.org ma

Re: [R] Returning to parent function

2015-03-16 Thread Saptarshi Guha
telemStats() should return to the prompt and the print in telemStats should not appear On Mon, Mar 16, 2015 at 4:02 PM, David Winsemius wrote: > > On Mar 16, 2015, at 3:08 PM, Saptarshi Guha wrote: > >> Hello, >> >> I would like a function X to return to the place that c

[R] Returning to parent function

2015-03-16 Thread Saptarshi Guha
printed") } I looked into callCC and signals but dont think i understood correctly. Any hints would be appreciated Kind Regards Saptarshi __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-

[R] KDE routines for data that is aggregated

2014-09-08 Thread Saptarshi Guha
form? I can sample from the data according to weights given by 'n' but i am curious if there is something that can use all the data when given a structure of this form. Regards Saptarshi [[alternative HTML version deleted]] __ R-

[R] rbinlist for data.table and specifying the column class

2013-09-18 Thread Saptarshi Guha
specify up front the classes rather than the last approach Regards Saptarshi [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-p

Re: [R] Parallel version of Map(rather, mapply)

2013-08-28 Thread Saptarshi Guha
thanks On Wed, Aug 28, 2013 at 11:58 AM, Greenberg, Jonathan wrote: > Hi Saptarshi: > > There are quite a few parallel mapply's out there -- my recommendation is > to use the foreach package, since it allows you to be flexible in the > parallel backend, and you don

[R] Parallel version of Map(rather, mapply)

2013-08-28 Thread Saptarshi Guha
Hello, I find Map to be nice interface to mapply. However Map calls mapply which in turn calls mapply via .Internal. Is there a parallel version of mapply (like mcapply) or do I need to write this myself? Regards Saptarshi [[alternative HTML version deleted

[R] Nulls being coerced : Bug or design?

2013-06-21 Thread Saptarshi Guha
Hello, Consider the following transcript > x=NULL > x$date=10 > x $date [1] 10 or > x=NULL > x[10]=10 > x [1] NA NA NA NA NA NA NA NA NA 10 Wouldn't one expect that x remain NULL despite the further additions (i.e the x$date, x[10]) etc? Is coercing appropriate

[R] Transferring R to another computer, R_HOME_DIR

2013-04-25 Thread Saptarshi Guha
location. Without changing the R shell script, how can i force it read in R_HOME_DIR? Or maybe i misunderstood the bash source? (Note, i cannot recompile on target machine) Cheers Saptarshi 1. I also realize Rscript will not work (i think path is hard coded in the source) Beginning of /usr/lib64/R

[R] Controlling print messages/warnings and error output in R package

2013-03-26 Thread Saptarshi Guha
-time/ the programmer calls print/cat/message/warning or stop. Are there hooks i can write code for? Regards Saptarshi [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] List of default packages (that come with R)

2013-03-19 Thread Saptarshi Guha
quot; "base" > boot "boot" "recommended" > ... > mgcv "mgcv" "recommended" > ... > tools "tools" "base" > utils "utils" "base" > > Bi

[R] List of default packages (that come with R)

2013-03-19 Thread Saptarshi Guha
Hello, Is there an R function that tells me the packages that come with R e.g. c("base","boot","methods","mgcv",...) Thank you Saptarshi [[alternative HTML version deleted]] __ R-help@r-project.org m

Re: [R] Codetools Query (repost)

2013-01-16 Thread Saptarshi Guha
thanks much. Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Using bquote to create names a for a list

2013-01-04 Thread Saptarshi Guha
solve this? Regards Saptarshi [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide comm

[R] (Re-posted as Plain Text ) Modelling a skew-normal distribution using glm/ mgcv

2012-12-08 Thread Saptarshi Guha
Hello, [ Sorry, I sent the last email as HTML, this time it's in plain text ] Suppose my variable,S, (time for something to start) is a skew-normal distribution [1]. Can glm and mgcv handle this type of distribution for the dependent variable? Regards Saptarshi [1] http://azzalini.stat.uni

[R] Install 64 bit version of package on OS X

2012-11-17 Thread Saptarshi Guha
I'm trying to install a package on OS X (Snow Leopard) using the following command, but instead of respecting the arch directive it install i386. How can this be resolved? R --arch=x86_64 CMD INSTALL * installing to library ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library

[R] Repost: Expressions returned by GlobalEnv functions and package functions

2012-05-31 Thread Saptarshi Guha
should use here). So my questions are: 1. how do i inspect the extra information that rhwrap is adding to its return value 2. How do i remove this, so that it behaves like ewrap Thanks in advance Saptarshi __ R-help@r-project.org mailing list https://

[R] Expressions returned by a Package function

2012-05-31 Thread Saptarshi Guha
o i inspect the extra information that rhwrap is adding to its return value 2. How do i remove this, so that it behaves like ewrap Thanks in advance Saptarshi ewrap <- function(co1=NULL,before=NULL,after=NULL){ co <- substitute(co1); before=substitute(before) j <-

Re: [R] Y-axis label on the right hand side in lattice?

2012-03-16 Thread Saptarshi
Thanks much. -- View this message in context: http://r.789695.n4.nabble.com/Y-axis-label-on-the-right-hand-side-in-lattice-tp4478959p4479614.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat

Re: [R] Y-axis label on the right hand side in lattice?

2012-03-16 Thread Saptarshi
ylab.right is perfect. However, I am drawing scales on the right axis (outside) (see code 1). When ylab.right is set to something it overlaps with the scale labels. see http://imgur.com/Gs3JS I seem to have asked the question: http://tolstoy.newcastle.edu.au/R/e5/help/08/09/1887.html But the sam

Re: [R] Changing axis labels depending on panel in lattice

2012-03-16 Thread Saptarshi
Thanks! Exactly what i need Saptarshi -- View this message in context: http://r.789695.n4.nabble.com/Changing-axis-labels-depending-on-panel-in-lattice-tp4478854p4479368.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[R] Y-axis label on the right hand side in lattice?

2012-03-16 Thread Saptarshi Guha
Hello, Is there a way to add ylab on the right hand side also (in lattice)? Different from the left hand side? Cheers Saptarshi [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] Changing axis labels depending on panel in lattice

2012-03-16 Thread Saptarshi Guha
axis.default(side = side, ...)) Is there anything i can do get the information regarding the panel i'm in? Regards Saptarshi [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

[R] Adding a modified top axis label using LatticeExtra and theEconomist theme

2011-12-07 Thread Saptarshi Guha
he exponent of the labels on the bottom x-axis. Without the asTheEconomist, it displays okay. Using TheEconomist, the top axis disappears. How can i force the top axis to appear? Thanks for your time Saptarshi __ R-help@r-project.org mailing list ht

[R] Using substitute on a function parameter

2011-09-07 Thread Saptarshi Guha
Hello, I would like to write a function where substitute operates on the parameter, but ... > Expression = function(o,l) substitute(o, l) > Expression({x=.(FOO)}, list(FOO=2)) o How do i get substitute to work on the contents of o. Regards Sap

[R] On .. glibc detected home/sguha/lib64/R/bin/exec/R: realloc(): invalid next size: 0x000000000209e210 ***

2011-06-24 Thread Saptarshi Guha
Hello, I'm trying to use rjson to parse a JSON object. The object can be found here http://pastebin.com/np0s5hgM (you'll probably need to add quotes around the content) fromJSON returns the error glibc detected home/sguha/lib64/R/bin/exec/R: realloc(): invalid next size: 0x0209e210 **

[R] The bin/R file - hardcoded paths

2011-04-29 Thread Saptarshi Guha
doesn't change things either. So i guess one cant run R on a system unless it's been installed? 1. I can't install R on the compute nodes using ./configure 2. All nodes do have the same architecture 3. I would like to stick to the 'shipping' app

[R] World plots and clipping regions

2011-03-25 Thread Saptarshi Guha
n outside the dotted red border? Thank you Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Does RHIPE support R on Windows as the user desktop environment?

2011-03-18 Thread Saptarshi Guha
Hello, I should see how to mirror a google group (if indeed possible). There are few things stopping from having RHIPE work on the remote while the client sends queries from a Windows client. But as of now, it does not work. Regards Saptarshi On Fri, Mar 18, 2011 at 7:50 AM, XiaoboGu wrote

Re: [R] Regex query (Apache logs)

2011-03-17 Thread Saptarshi Guha
ttern <- readLines(url("http://pastebin.com/raw.php?i=s7VT0r5K";), warn=FALSE) test <- readLines(url("http://pastebin.com/raw.php?i=rbAvR2dK";),warn=FALSE) regexpr(pattern, test, perl=TRUE) Thanks Saptarshi On Thu, Mar 17, 2011 at 12:12 AM, Allan Engelhardt wrote

[R] Regex query (Apache logs)

2011-03-16 Thread Saptarshi Guha
t;) test <- readLines("/tmp/a.txt") test grep(pat,test) returns integer(0) The same query works in python via re.match() (i.e does return groups) Using readLines, the regex is escaped for me. Does Python and R use different regex styles? Cheers Saptarshi [1] ^(\d{1,3}\.\d

[R] unserialize form rawConnection possibe?

2010-11-17 Thread Saptarshi Guha
do unserialize( a[ 5:(5+u)] ) but sticking with the connection would be nicer. Cheers Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Using Rscript to read from a file

2010-10-14 Thread Saptarshi Guha
Dirk, thanks. On Thu, Oct 14, 2010 at 9:42 AM, Dirk Eddelbuettel wrote: > > On 14 October 2010 at 11:21, Dirk Eddelbuettel wrote: > | On 14 October 2010 at 08:49, Saptarshi Guha wrote: > | | Hello, > | | I have this script which will be invoked as > | | > | | Rscript a.r

Re: [R] Python's string translate in R?

2010-10-14 Thread Saptarshi Guha
Yes, thanks much. On Thu, Oct 14, 2010 at 9:36 AM, jim holtman wrote: > ?chartr > > Is this what you are looking for? > > On Thu, Oct 14, 2010 at 12:10 PM, Saptarshi Guha > wrote: >> Hello, >> >> Would one use gsub to perform pythons translate? >> &

[R] Python's string translate in R?

2010-10-14 Thread Saptarshi Guha
Hello, Would one use gsub to perform pythons translate? in python table = string.maketrans("abc","xyz") "abc".translate(table) "xyz" how does one do this in R? Thank you Saptarshi __ R-help@r-project.org m

[R] Using Rscript to read from a file

2010-10-14 Thread Saptarshi Guha
from standard input? Thank you Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] time of serialization

2010-08-15 Thread Saptarshi Guha
Hello, I take this back, wrong implementation of the experiment. Sorry for the noise. Regards Saptarshi On Sun, Aug 15, 2010 at 12:22 PM, Saptarshi Guha wrote: > Hello, > I have question about the overhead in lapply. > x is a list of 3000 lists. Each of the i (1<=i<=3000) l

[R] time of serialization

2010-08-15 Thread Saptarshi Guha
e(serialize(r,NULL))['elapsed'] })) > sum(unlist(y)) 18.812 > z user system elapsed 494.144 0.041 494.247 So, the entire lapply takes ~26 times longer than the sum of the individual operations. Have i missed something? Regards Saptarshi __

[R] Highlighting points in a quantile plot for different values of a second column

2010-02-13 Thread Saptarshi Guha
5)) I would like a single curve, the following example displays two curves. qqmath(~x,groups=f,data=x,distribution=qunif,f.value=pp) Thank you Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Reading large files

2010-02-06 Thread Saptarshi Guha
suitably small - i notice you mention that each region is 10-20 GB and you want to compute on /all/ i.e you need all of it in memory. If so, Rhipe cannot help you. Regards Saptarshi On Thu, Feb 4, 2010 at 8:27 PM, Vadlamani, Satish {FLNA} wrote: > Folks: > I am trying to read in a larg

[R] Question on codetools and parse trees

2010-01-29 Thread Saptarshi Guha
uot; ( [<- x 1 2 ) ) If indeed the parse tree in (A) is correct, the operation ([ x 1) returns the value of x[1], how then does the <- operator know to change the 1st element of x ? Does the <- implementation inspect the its 1st argument (e.g if it sees [ call, it instead chan

[R] Composing a sequence of functions dynammically

2009-12-25 Thread Saptarshi Guha
Hello, I would like to compose a series of functions each taking one argument. Let us assume the values returned by the functions are contained within the domains. So b<-function(r) r[-1] compose("b","b") b(b(x)) This is my solution, is there something succinct ? Reg

Re: [R] Package is loaded but functions are not exported

2009-12-01 Thread Saptarshi Guha
I have no idea why I used the \\, the perils of copy and pasting from some other package or source . So, heres the thing, did R regex interpreter change? How come my export stopped working? Thank you Regards Saptarshi On Tue, Dec 1, 2009 at 11:28 AM, Romain Francois wrote: > You probably j

Re: [R] Package is loaded but functions are not exported

2009-12-01 Thread Saptarshi Guha
As a followup, i can do things Package:::rh*, there just no exported. On Tue, Dec 1, 2009 at 11:18 AM, Saptarshi Guha wrote: > Hello, > I wrote a package, which in the NAMESPACE file exports functions like this: > > exportPattern("^\\rh") > > On R-2.8 (Linux, 64), upo

[R] Package is loaded but functions are not exported

2009-12-01 Thread Saptarshi Guha
unction is rhyper (which is not from my package). Is there something wrong with my package setup? Regards Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

Re: [R] Force a variable substitution in expression

2009-11-27 Thread Saptarshi Guha
> }) > > Duncan Murdoch > Thanks, after sending this email, i used substitute, but first eval'ing the formals (since they are delayed assignments). I see bquote does this for me. Regards Saptarshi __ R-help@r-project.org mailing list

[R] Force a variable substitution in expression

2009-11-27 Thread Saptarshi Guha
when eval'd e.g x <- foo(10) eval(x) Error in eval(expr, envir, enclos) : object 's' not found Q: How do I force a substitution so that the returned expression has the value of 's' 'hardcoded' in it e.g > foo(10) returns expression({ v <- 10

[R] Basic Question about local

2009-11-15 Thread Saptarshi Guha
I have some beginner's questions regarding local, in the docs, it says that "local evaluates an expression in a local environment". Q1: why is B different from A? In B, is a<-a+1 getting evaluated before eval proceeds? #A a=0 eval(quote(a<-a+1),new.env()) a # 0 #B a=0 eval(a<-a+1,new.env()) a #

[R] ANN: rproto v1 (Protocol Buffers and R) [repost]

2009-09-11 Thread Saptarshi Guha
ading on my part: it is possible to extend this to serialize functions, expressions, environments and several other objects. However that is some time in the future. Regards Saptarshi [1] http://code.google.com/apis/protocolbuffers/docs/overview.html Download: http://ml.stat.purdue.edu/rproto_1.0.t

[R] ANN: rproto v1 (Protocol Buffers and R)

2009-09-11 Thread Saptarshi Guha
it is possible to extend this to serialize functions, expressions, environments and several other objects. However that is some time in the future. Regards Saptarshi [1] http://code.google.com/apis/protocolbuffers/docs/overview.html Download: http://ml.stat.purdue.edu/rproto_1.0.tar.gz Saptarshi

[R] Writing to a UDP server from R?

2009-07-26 Thread Saptarshi Guha
ening on the other side. Any help would be appreciated. Regards Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide c

Re: [R] Remembering a value in multiple calls of a function

2009-07-17 Thread Saptarshi Guha
Thanks to all for the helpful explanation. Regards Saptarshi On Fri, Jul 17, 2009 at 12:42 AM, wrote: > 'startgiven' is in the environment of your function 'incr' (which is what > your function 'a' becomes).  It might be more transparent to define your

[R] Remembering a value in multiple calls of a function

2009-07-17 Thread Saptarshi Guha
Env, yet the globalenv does not have any mention of startgiven. This code was inspired from and old issue of RJournal , but I'm not sure how this works. I'm not sure how this works and an explanation would be helpful. Thank you Saptarshi getN <- function(start){ startgiven &

[R] Using yum to install R-2.9

2009-06-10 Thread Saptarshi Guha
Hello, On Fedora 8, yum install R , installs R-2.6. I dont have much experience with yum, how do change the repos(?) to install R-2.9? Thank you Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] R on EC2 and R CMD javareconf

2009-06-09 Thread Saptarshi Guha
am using a small instance and Fedora 8 AMI Regards Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] integer ranges in R vs C and Java

2009-05-02 Thread Saptarshi Guha
> You've hit on the reason -- representation of NA > > src/main/arithmetic.c:157:    R_NaInt = INT_MIN; Aha! Yes, I missed that. > > (R-devel seems more appropriate for this question). Yes, i was not sure. Thank you Saptarshi __

[R] integer ranges in R vs C and Java

2009-05-02 Thread Saptarshi Guha
s the maximum (without returning NA) but the lowest is -2147483647 (-2^31+1) > as.integer((-2)^31) [1] NA So in both Java and C can hold 2^32 different values, but R holds 2^32 -1 different values. Have I made a mistake? Is there a reason for the difference? Thank you S

[R] ANN: RHIPE 0.1

2009-04-27 Thread Saptarshi Guha
educe=r,input.folder="X",output.folder="Y") URL: http://ml.stat.purdue.edu/rhipe There are some downsides to RHIPE which are described at http://ml.stat.purdue.edu/rhipe/install.html#sec-5 Regards Saptarshi Guha __ R-help@r-project.

[R] rhipe v0.1

2009-04-08 Thread Saptarshi Guha
fortunately, I haven't had the chance to compare with rmpi and snow. TODO(will appear soon ): another function: rhmr - mapreduce using R. Regards Saptarshi Guha [[alternative HTML version deleted]] __ R-help@r-project.org mailing list http

[R] List assignment in a while loop and timing

2009-03-30 Thread Saptarshi Guha
have preassigned the list in line A0, so I'm guessing there is no resizing going on, so why does the time increase so much? Thank you for your time. Regards Saptarshi ==code== rdr <- rhsqreader("~/tmp/pp",local=T,pattern="^p") rdr <- rhsqstart(rdr) i <- 1; h=a

[R] A question about rJava and the classpath

2009-03-23 Thread Saptarshi Guha
.jclassPath() does contain an entry to this class. Moreover, when run at the command line using the *same* classpath, I don't get any such error messages. Is there a possible reason why? Regards Saptarshi Saptarshi Guha __ R-help@r-project.org

[R] max-nsize, cons : what do they all mean?

2009-03-10 Thread Saptarshi Guha
quite understand it. What does the option do and why did I initially run into an error ? >From man R --max-nsize Set max number of cons cells to N Why should there be a maximum? Thanks for your time Saptarshi Guha __ R-help@r-project.org mail

[R] Plots of different aspect ratios on one page, base aligned(trellis.print)

2009-03-10 Thread Saptarshi Guha
) The two figures are not base aligned. I would like them share the same the baseline and same height, if necessary the paper width and height can be adjusted ( i tried setting the paper width and height to no avail). Is the way to base align the two figur

[R] R and Hadoop Integrated Processing Environment - RHIPE

2009-01-24 Thread Saptarshi Guha
more information and examples please visit this page: http://www.stat.purdue.edu/~sguha/rhipe . If anyone would like to contribute to this project, please email me directly - any help is welcome. Regards Saptarshi Guha __ R-help@r-project.org ma

[R] eval using a environment X but resultsin .GlobalEnv

2009-01-04 Thread Saptarshi Guha
to this instead of iterating over all objects E and assigning into .GlobalEnv? Thank you Saptarshi -- Saptarshi Guha - saptarshi.g...@gmail.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Writing a Long across the network?

2008-12-11 Thread Saptarshi Guha
Bin(length(x),con=conn,endian="big") #conn opened in binary But the response on the server side is wrong, eg. 1 is received as 4294967297 How do I then write long across the network from R? Thank you Saptarshi Saptarshi Guha | saptarshi.g

Re: [R] Rserve and creating a list of lists

2008-11-30 Thread Saptarshi Guha
und this? Regards Saptarshi R.version = 2.8 > > On Nov 30, 2008, at 5:53 PM, Saptarshi Guha wrote: > >> Hello, >> I have some code which generates lattice objects. The function >> recieves serialized forms of the lattice objects which it

[R] Rserve and creating a list of lists

2008-11-30 Thread Saptarshi Guha
o interpret [EMAIL PROTECTED] *** REXPFactory unable to interpret [EMAIL PROTECTED] * ** REXPFactory unable to interpret [EMAIL PROTECTED] How can I in general,force the unserialize to return a list? Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha Marijuana

[R] Splitting a lattice stripplot across several pages

2008-11-13 Thread Saptarshi Guha
dataset, the y-axis labels overlap so I would like to split it across several panels(1 panel per page) with about 25-50 per panel. Is there a way to do this? Regards Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML

[R] Lattice and Axis height

2008-10-06 Thread Saptarshi Guha
on to set the height to 0 when I'm the top panel. Or maybe like par.strip.text I could set it to a vector equal to the length of the panels, alternating (Draw,DontDraw,Draw,) Is this possible? Regards Saptarshi P.S I'm essentially passing dummy variables to xyplot and for each valu

[R] Conditioning variables in lattice - not all combinations

2008-10-05 Thread Saptarshi Guha
tles.) Is there a way to solve this? Also, each level of C appears in exactly one combination of A and B (the combinations that appear in the data set, not the ones produced by lattice) Kind regards Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[a

[R] Fwd: Lines between panels in lattice

2008-09-19 Thread Saptarshi Guha
Forgot to send to the list. Begin forwarded message: > From: Saptarshi Guha <[EMAIL PROTECTED]> > Date: September 19, 2008 1:43:50 PM GMT-04:00 > To: Gabor Grothendieck <[EMAIL PROTECTED]> > Subject: Re: [R] Lines between panels in lattice > > Certainly. > &g

Re: [R] Lines between panels in lattice

2008-09-19 Thread Saptarshi Guha
Got it. It should be plot1.panel.1.2.off.vp and likewise. Thanks Saptarshi On Sep 19, 2008, at 12:08 PM, Saptarshi Guha wrote: > Hello, > I have a multi-page display each consisting of two-panels above each > other. > I need to draw a line from the top panel to bottom

[R] Lines between panels in lattice

2008-09-19 Thread Saptarshi Guha
lot1.panel.1.1.vp") grid.line.to(unit(1.2,"native"),unit(3.5,"native")) However, I can see the line in the bottom panel, but nothing in the top. Is there some clipping going on? Thanks Saptarshi Saptarshi Guha | [EMAIL PROTEC

[R] Axes Labels on the Right side of lattice panel

2008-09-18 Thread Saptarshi Guha
ght happen (as pointed out in the help page) but how can I get around it? Should I specify a width to the device? Thank you Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]] __

[R] Question on spacing around plot and box in lattice

2008-04-03 Thread Saptarshi Guha
(Mac) device, there is very little padding between the bottom of the curve and the lower horizontal axis and between the maximum values of the curve and the upper horizontal axis. How can i increase the padding - top,bottom,left and right? Thanks in advance for your time.

[R] Minor tick marks

2008-02-24 Thread Saptarshi Guha
Hello, Is there a way to add minor tick marks to the Y-axis of a lattice plots? Thank you Saptarshi Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]] __ R

Re: [R] Setting a graph flushed to edges of axes

2008-02-19 Thread Saptarshi Guha
Aah, didn't notice this one.I was using the sunspot data and couldnt think of a way to show it in this example. Nevertheless, axs="i" worked perfectly. Thank you Saptarshi On Feb 19, 2008, at 4:17 PM, Deepayan Sarkar wrote: >> >>In this case there is some pa

[R] Setting a graph flushed to edges of axes

2008-02-19 Thread Saptarshi Guha
p2=u[u[,3]==2,1] xlim=list(range(p1),range(p2)) xyplot(u[,2]~u[,1]|u[,3],scales=sc,xlim=xlim,type="l",layout=c(1,2)) In this case there is some padding between the endpoints and the vertical axes. How can I remove this padding?

Re: [R] Set length of axes in lattice

2008-02-17 Thread Saptarshi Guha
Thank you. On Feb 17, 2008, at 1:18 PM, Deepayan Sarkar wrote: > See ?print.trellis. > > p <- xyplot(1 ~ 1, aspect = 0.5) > p > plot(p, panel.width = list(2, "inches"), panel.height = list(1, > "inches")) > > This overrides 'aspect=' though, that is, you will need to specify > both width and heig

[R] Set length of axes in lattice

2008-02-17 Thread Saptarshi Guha
same scales. I suppose i need to do something in prepanel but what? Is there any function i can call to set the actual length of the axes? Thank you Saptarsho Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha [[alternative HTML ve

[R] Set length of axes in lattice's xyplot?

2008-02-17 Thread Saptarshi Guha
thing in prepanel but what? Is there any function i can call to set the actual length of the axes? Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/lis

[R] A question regarding two dimensional optimization with constraints

2007-11-05 Thread Saptarshi Guha
for your time and help. Regards Saptarshi __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

[R] Problem compiling R - "use of NULL environment is defunct"

2007-09-28 Thread Saptarshi Guha
directory `/home/sguha/tmp/R-2.5.1/src/library' make[1]: *** [R] Error 1 make[1]: Leaving directory `/home/sguha/tmp/R-2.5.1/src' make: *** [R] Error 1 Could someone point out what I'm supposed to fix? Thank you for your time Saptarshi __ R