search for: rguha

Displaying 20 results from an estimated 23 matches for "rguha".

Did you mean: guha
2007 Nov 20
2
adding an image to a plot
...position in the plot (ideally in plot coordinates)? I realize that this might probably be better done in a separate image editor, but if it could be done programmatically that would be very handy Thanks, ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- So the Zen master asked the hot-dog vendor, "Can you make me one with everything?" - TauZero on Slashdot
2007 Aug 13
4
vertically oriented color key in heatmaps
...f a vertical bar with the color range rather than the style that gplots provides. Is there any package (or code snippet) that would let me add a vertical color key to an image() or heatmap plot? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Q: What do you get when you put a spinning flywheel in a casket and turn a corner? A: A funeral precession.
2006 Oct 30
0
documenting overridden methods (for S4 classes)
...e fingerprint. That is, this is the length of the entire bit string and not simply the number of bits that are on. } \arguments{ \item{x}{ An object of class \code{fingerprint} } } \value{ The length of the bit string } \keyword{logic} \keyword{methods} \author{Rajarshi Guha \email{rguha at indiana.edu}} However, when I do R CMD check on the package I get the following error: Functions/methods with usage in documentation object 'length' but not in code: length I have also implemented the 'as.character' method for my objects and I get a similar error for it as...
2008 Nov 17
1
using an image as a dendrogram label
...reen display, but ideally I'd like to directly go from the dendrogram to a PDF and on-screen viewing is not to too important for me. Also, my trees are relatively small. Any pointers would be apreciated ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: D070 5427 CC5B 7938 929C DD13 66A1 922C 51E7 9E84 ------------------------------------------------------------------- A man is known by the company he organizes. -- Ambrose Bierce
2009 Feb 07
1
vignettes are installed but not viewable?
...eader of the Rnw file is % \VignetteIndexEntry{rcdk Tutorial} % \VignettePackage{rcdk} % \VignetteKeywords{} I am totally stumped by this - could anybody shed some light on what I'm doing wrong? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: D070 5427 CC5B 7938 929C DD13 66A1 922C 51E7 9E84 ------------------------------------------------------------------- Does Ramanujan know Polish? -- E.B. Ross
2008 Nov 21
2
rgl lighting question
...nt and diffuse but I can't bring out the details of the surface. Could anybody point me to some examples of how to make a plain matte surface, which isn't obscured by specular reflections? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: D070 5427 CC5B 7938 929C DD13 66A1 922C 51E7 9E84 ------------------------------------------------------------------- If you don't get a good night kiss, you get Kafka dreams." -Hobbes
2007 May 14
2
creating a "list of 3 dataframes" from a "list of 2 dataframes" and a dataframe?
#I wish to create a "list of three dataframes" ("results2") from a "list of two dataframes" (temp) and a dataframe ("c")? #Please advise. a <- data.frame(x=c(1,2,3),y=c(5,7,9)) b <- data.frame(x=c(2,4,7,9),y=c(2,3,5,4)) c <- data.frame(x=c(22,34,7,9),y=c(52,63,5,4)) results1 <- list(a,b,c) #what I want #but this is how I need to get there
2007 Aug 09
1
S4 based package giving strange error at install time, but not at check time
...the function snipped }) Since the method has been defined I can't see why I should see the error during install time, but nothing when the package is checked. Any pointers would be appreciated. ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Bus error -- driver executed.
2012 May 02
3
strange differences in vector operation versus manual calculation
...;- params[4] + (params[3] - params[4])/(1 + 10^(params[1]-xx)^params[2]) t1 <- 10^(params[1]-xx) t2 <- params[3] - params[4] t3 <- (1+t1)^params[2] t4 <- t2/t3; t5 <- params[4] + t4 I would've expected yy and t5 to be the same; yet they are not -- Rajarshi Guha | http://blog.rguha.net NIH Center for Advancing Translational Science
2008 May 17
1
Correlated Columns in data frame
...ious message to this list, pasted hereunder) Thanks and regards, B.Nataraj Following is my previous message to this list to which I do not get any reply. Dear all, For removing correlated columns in a data frame,df. I found a code written in R in the page http://cheminfo.informatics.indiana.edu/~rguha/code/R/ of Mr.Rajarshi Guha. The code is ################# r2test <- function(df, cutoff=0.8) { if (cutoff > 1 || cutoff <= 0) { stop(" 0 <= cutoff < 1") } if (!is.matrix(d) && !is.data.frame(d)) { stop("Must supply a data.frame or matrix")...
2009 Nov 19
1
problem post request with RCurl
...q doesn't seem to get sent (content-length = 0). Does anybody have any suggestions as to why the call to postForm doesn't work, but the command line call does? Thanks, ---------------------------------------------------- Rajarshi Guha | NIH Chemical Genomics Center http://www.rguha.net | http://ncgc.nih.gov ---------------------------------------------------- Q: Why did the mathematician name his dog "Cauchy"? A: Because he left a residue at every pole.
2012 Jul 27
1
overlaying a set of 'grouping' lines on a plot from image()
...ownames(m), font=2) axis(1, labels = FALSE, tick=FALSE) labels <- sprintf("Compound%d", 1:ncol(m)) text(seq(0, 1, length=ncol(m)), par("usr")[3] - 0.1, srt = 45, adj = 1, labels = labels, xpd = TRUE, col='#666666', cex=0.8) -- Rajarshi Guha | http://blog.rguha.net NIH Center for Advancing Translational Science
2006 Aug 18
1
list of lists to a data.frame
...ctor of characters and similarly for b[,2] and so on. I am clearly missing something, but how do I convert the list of lists to a data.frame where a column is represented as a vector rather than a list? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- All life evolves by the differential survival of replicating entities. -- Dawkins
2006 Aug 31
1
java R interface
Hello all, I am wondering if you have experience or information about calling R routines within JAVA? Is it feasible and how to pass the data/results? TXIA! Yuefeng [[alternative HTML version deleted]]
2006 Nov 29
1
An example of using rJava
I have received a few private emails asking for some simple demonstration of calling Java code from R using the rJava package (which can be installed directly inside R). Here is one example for convolving two vectors (an example in the R manual about linking C with R). First write a Java program public class my_convolve { public static double[] convolve(double[] a, double[] b)
2007 Apr 24
2
negative number to positive number
Hello all, I know this is a pretty easy question but I can't find it in S poetry or R help. How can I make a negative number positive. Such as -5 to be +5 I tried +(-5), but that didn't work. So no, I don't mean taking a -5^2 just to get a positive number. This is in a function so it's not just -5 it's x. :) Thanks, Paul -- Research Technician Mass Spectrometry o The
2007 Apr 25
1
Scripting graph generation
Hi, I'm looking to automate the generation of some graphs in R. I can't seem to figure out how to script R, and change the output device of hist() or plot() to create a .gif or .png file. This seems like something that is probably really simple, and I've just overlooked the call do do it. Can anyone point me in the right direction, or maybe send a sample script? thanks, --Mike
2008 Mar 17
0
'distance' between a vector and a permutation of the vector
...t seems that a good candidate would be the levenstein distance - is there a function that would work on vectors of integers rather than strings? Are there more suitable candidates? Thanks for any pointers - ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: D070 5427 CC5B 7938 929C DD13 66A1 922C 51E7 9E84 - ------------------------------------------------------------------- Q: What's polite and works for the phone company? A: A deferential operator. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darw...
2007 Jun 24
1
JRI and Axis Web Service
Hi all, It is my first time to use the R-help mailing list and doesn't have too much R acknowledge. The reason that I am writing this email is looking for helps of using JRI in Java Axis Web Service. Well, I am not quite sure if this is the right place to ask this kind of questions, but I can't find the JRI mailing list. So please give me some hints if this is not the right place to
2007 Apr 27
2
Integrating R-programs into larger systems
Hi experts! Have anybody experience in including an R-program as part of a larger system? In Matlab there is a toolbox that converts a m-script into C-code. One application in mind is that I do the model building in R, for estimating the risk for cancer based on clinical measurements. When the model is ready, a small R-program can simulate the model to estimate the risk for a new patient. The