[R] loading a package .Rda file at package load time

2009-09-14 Thread Rajarshi Guha
t would require me to know the path to the package in a platform independent way. Can anybody suggest how I can acheive this? Thanks, -- Rajarshi Guha NIH Chemical Genomics Center [[alternative HTML version deleted]] __ R-help@r-project.o

Re: [R] loading a package .Rda file at package load time

2009-09-14 Thread Rajarshi Guha
d'filename.Rda') but that would require me to know the path to the > package in a platform independent way. > > Can anybody suggest how I can acheive this? > > Thanks, > > -- > Rajarshi Guha > > > You mentioned that you used something similar to: > >

[R] plotting a PNG from an in-memory object

2009-07-27 Thread Rajarshi Guha
f the window, but is it at all possible to some return that data to the R side to display via plot()? Any pointers would be appreciated -- Rajarshi Guha [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.et

[R] lattice visualization - superpose multiple columns over another (fixed) column

2010-04-20 Thread Rajarshi Guha
ollows: x <- data.frame( ... ) par(mfrow=c(3,1)) for (i in 2:4) { plot(x[,1]) points(x[,i]) } Any suggestions as to how I could convert this to a lattice version would be much appreciated Thanks, -- Rajarshi Guha NIH Chemical Genomics Center __ R-help@

[R] lattice code to plot columns over another variable

2010-04-20 Thread Rajarshi Guha
ollows: x <- data.frame( ... ) par(mfrow=c(3,1)) for (i in 2:4) { plot(x[,1]) points(x[,i]) } Any suggestions as to how I could convert this to a lattice version would be much appreciated Thanks, -- Rajarshi Guha NIH Chemical Genomics Center __ R-help@

Re: [R] R and REST API's

2009-09-28 Thread Rajarshi Guha
ded data put into an R data frame)? > The url() function together with the XML package should let you do this -- Rajarshi Guha NIH Chemical Genomics Center [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] decision trees using the Hellinger distance rather than

2009-10-02 Thread Rajarshi Guha
/Reports/2008/TR-2008-06.pdf [2] http://csmr.ca.sandia.gov/~wpk/slides/wdmda-sem.pdf -- Rajarshi Guha NIH Chemical Genomics Center [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] using a custom color sequence for image()

2009-10-16 Thread Rajarshi Guha
from black and ending in green? 2. How is this specified to image() such that it uses the colors in the proper ordering? Thanks, -- Rajarshi Guha NIH Chemical Genomics Center [[alternative HTML version deleted]] __ R-help@r-project.org ma

[R] converting a vector of bytes to a PNG/JPEG image

2009-11-18 Thread Rajarshi Guha
ixmap and rimage packages but don't seem to be able to work out how I'd go about this (or if it's at all possible). Does anybody have any pointers? Thanks, -- Rajarshi Guha NIH Chemical Genomics Center [[alternative HTML version deleted]] ___

[R] problem post request with RCurl

2009-11-18 Thread Rajarshi Guha
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.ne

[R] checking and building ROracle on OS X

2009-06-10 Thread Rajarshi Guha
icate a 32 bit build - but I can't see how I can specify these args via R CMD CHECK or R CMD BUILD. Any pointers would be appreciated. -- Rajarshi Guha [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.

[R] an idiom to handle i'th element of a set of lists simultaneously

2009-06-23 Thread Rajarshi Guha
d to lappy would have access to an element from each list? (In Python, I would have used for a,b,c in zip(x,y,z): ...) Thanks, -- Rajarshi Guha [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

Re: [R] an idiom to handle i'th element of a set of lists simultaneously

2009-06-23 Thread Rajarshi Guha
Thanks to all who replied. mapply does the trick On Tue, Jun 23, 2009 at 8:11 AM, Rajarshi Guha wrote: > Hi, I have 3 lists, x, y, z and I'd like to perform a calculation over all > the lists simultaneously. If it were a single list I could use lapply, but > for more than one li

[R] reconfiguring R to use Java 1.6 on OS X

2010-01-11 Thread Rajarshi Guha
JDK rather than the 1.5 JDK? Thanks -- Rajarshi Guha NIH Chemical Genomics Center __ 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 pr

[R] merging plot labels in a lattice plot

2010-07-02 Thread Rajarshi Guha
and use a single label). Any pointers as to how I could acheive this would be appreciated Thanks, -- Rajarshi Guha NIH Chemical Genomics Center __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gu

[R] xyplot with all columns of a data.frame on a single plot

2010-07-26 Thread Rajarshi Guha
with formulae in lm, I thought, xyplot(. ~ X, data) would work, but it didn't) Thanks, -- Rajarshi Guha NIH Chemical Genomics Center __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] sorting a (homogenous) list of objects, based on a a field of the objects

2010-09-11 Thread Rajarshi Guha
fps <- fps[ tmp ] this seems a little klunky and I was wondering if there was another way to do this (by analogy with comparator functions in Java) Thanks, -- Rajarshi Guha NIH Chemical Genomics Center __ R-help@r-project.org mailing list https://s

Re: [R] Pipeline pilot fingerprint package

2010-10-13 Thread Rajarshi Guha
ads to loss of resolution and that the latter could lead to generally low Tanimoto scores. Do you know what Pipeline Pilot does? -- Rajarshi Guha NIH Chemical Genomics Center __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/

[R] rasterImage and coordinate conversion

2010-11-17 Thread Rajarshi Guha
is located at the bottom of the y-axis and the left end of the x-axis. Since my image is say 100px x 100px, is there a way for me to convert a 100px length into the appropriate value in user coordinates, along the x-axis? Thanks, -- Rajarshi Guha NIH Chemical Genom

[R] adding text to the top corner of a lattice plot

2010-12-16 Thread Rajarshi Guha
While panel.text lets me add text anywhere within a plot, I can't seem to workout how I could put some text in the top left corner, say, of the whole plotting region. Any pointers would be appreciated -- Rajarshi Guha NIH Chemical Genomics Center ___

Re: [R] adding text to the top corner of a lattice plot

2010-12-16 Thread Rajarshi Guha
On Thu, Dec 16, 2010 at 11:26 PM, David Winsemius wrote: > > On Dec 16, 2010, at 11:12 PM, Rajarshi Guha wrote: > >> Hi, I have a series of lattice plots which I am arranging in a 2x2 >> grid via print: >> >> print(p.preds, split=c(1,1, 2,2), more=TRUE) >&g

Re: [R] adding text to the top corner of a lattice plot

2010-12-17 Thread Rajarshi Guha
This (and Gabors) solutions work great. Thanks to everybody for helping out On Fri, Dec 17, 2010 at 1:24 AM, David Winsemius wrote: > > On Dec 17, 2010, at 12:07 AM, Rajarshi Guha wrote: > >> On Thu, Dec 16, 2010 at 11:26 PM, David Winsemius >> wrote: >>> &g

Re: [R] xyplot with all columns of a data.frame on a single plot

2010-07-27 Thread Rajarshi Guha
# melted data > xyplot(value ~ x, data = m, groups = variable, >     auto.key = list(space = 'right', points = TRUE, lines = FALSE)) > # plot from the original data > xyplot(y1 + y2 + y3 ~ x, data = d, >     auto.key = list(space = 'right', points = TRUE, lines =

[R] identify subsets based on two grouping factors

2011-01-31 Thread Rajarshi Guha
here a more elegant way to achieve this? -- Rajarshi Guha NIH Chemical Genomics Center __ 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 an

Re: [R] identify subsets based on two grouping factors

2011-01-31 Thread Rajarshi Guha
d functions (e.g. ave) that simplify and streamline this for > more complicated applications. > > -- Bert > > On Mon, Jan 31, 2011 at 1:43 PM, Rajarshi Guha > wrote: >> >> Hi, I have a data.frame that has a categorical variable, for which I >> would like to look

[R] arranging pie charts in a matrix layout with row/col labels

2011-01-31 Thread Rajarshi Guha
$obs, list(cut.grp1, cut.grp2), function(z) { pie(table(z), col=c('red', 'green')) }) One possibility is to add an extra row and column to the layout and loop over the results of the tapply, adding a text label for the row and column labels. Is there a better way to achieve this

[R] prevent export of specific functions in NAMESPACE

2011-02-20 Thread Rajarshi Guha
hread (http://www.mail-archive.com/r-help@r-project.org/msg42961.html) suggests that a regex is not the way to 'negate' a string literal. So to prevent export of specific functions, do I need to explicitly list all functions that are to be exported? -- Rajarshi Guha NIH Chemical

[R] overlaying a set of 'grouping' lines on a plot from image()

2012-07-27 Thread Rajarshi Guha
ot; ))) cols <- c("#00", "#19", "#33", "#4C", "#66", "#7F", "#99", "#B2", "#CC", "#E5", "#FF", "

[R] strange differences in vector operation versus manual calculation

2012-05-02 Thread Rajarshi Guha
arams[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 __ R-help@r-project.org mailing list https://

[R] adding an image to a plot

2007-11-20 Thread Rajarshi Guha
nates)? 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 <[EMAIL PROTECTED]> GPG Fingerprint: 0CCA 8EE

Re: [R] Analyzing Publications from Pubmed via XML

2007-12-13 Thread Rajarshi Guha
e required stuff from the raw feed - using ElementTree in Python makes this a trivial task Once you have the raw data you can read it into R --- Rajarshi Guha <[EMAIL

Re: [R] Analyzing Publications from Pubmed via XML

2007-12-13 Thread Rajarshi Guha
choice. This is something that can be done in R (the rpubchem package contains functions to process XML files from Pubchem, which might provide some pointers) --- Rajarshi Guha <[EMAIL PROTEC

[R] snow on OS X

2008-01-16 Thread Rajarshi Guha
27;m not sure what the problem is Any pointers would be appreciated --- Rajarshi Guha <[EMAIL PROTECTED]> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --

[R] vignettes are installed but not viewable?

2009-02-07 Thread Rajarshi Guha
I'm doing wrong? Thanks, --- Rajarshi Guha GPG Fingerprint: D070 5427 CC5B 7938 929C DD13 66A1 922C 51E7 9E84 --- Does Ramanujan know Polish? -- E.B. Ross _

Re: [R] vignettes are installed but not viewable?

2009-02-07 Thread Rajarshi Guha
On Feb 7, 2009, at 3:13 PM, Romain Francois wrote: Hi, Have you tried : > vignette( package = "rcdk" ) Yes, I had tried that > vignette(package='rcdk') no vignettes found --- Rajarshi Guha GPG F

[R] 'distance' between a vector and a permutation of the vector

2008-03-17 Thread Rajarshi Guha
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 <[EMAIL PROTECTED]> GPG Fingerprin

[R] using an image as a dendrogram label

2008-11-17 Thread Rajarshi Guha
o too important for me. Also, my trees are relatively small. Any pointers would be apreciated --- Rajarshi Guha <[EMAIL PROTECTED]> GPG Fingerprint: D070 5427 CC5B 7938 929C DD13 66A1 922

[R] rgl lighting question

2008-11-21 Thread Rajarshi Guha
ured by specular reflections? Thanks, --- Rajarshi Guha <[EMAIL PROTECTED]> GPG Fingerprint: D070 5427 CC5B 7938 929C DD13 66A1 922C 51E7 9E84 --- If you don't get a good night k

Re: [R] rgl lighting question

2008-11-22 Thread Rajarshi Guha
Thanks a lot for the pointer to rgl.pop() - that works (as does looking at the examples!) On Nov 22, 2008, at 10:28 AM, Duncan Murdoch wrote: On 21/11/2008 2:30 PM, Rajarshi Guha wrote: Hi, I'm using rgl to generate a 3D surface plot and I'm struggling to get the lighti

Re: [R] Someone Using Java/R Interface--- JRI ?

2007-09-13 Thread Rajarshi Guha
PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. --- Rajarshi Guha <[EMAIL PROTECTED]> GPG Fingerprint: 0CCA 8EE2 2EEB