[R] Using packages built in linux in windows

2010-09-01 Thread rajesh j
Hi, I built a package in linux and would like to use it in windows. I cant build the package again in windows because it would miss the necessary libraries etc(I'm using Rcpp). So I need to generate a binary version and try to install it in windows. I tried this and I get the error

Re: [R] Using packages built in linux in windows

2010-09-01 Thread rajesh j
Otherwise, you can use win-builder: http://win-builder.r-project.org/ Romain Le 01/09/10 17:05, rajesh j a écrit : Hi, I built a package in linux and would like to use it in windows. I cant build the package again in windows because it would miss the necessary libraries etc(I'm

Re: [R] Using packages built in linux in windows

2010-09-01 Thread rajesh j
I thought building a binary took care of that issue. How do I port a linux library to windows? On Wed, Sep 1, 2010 at 9:12 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 01/09/2010 11:34 AM, rajesh j wrote: This problem doesnt seem to have anything to do with Rcpp. I can't build

Re: [R] Using packages built in linux in windows

2010-09-01 Thread rajesh j
on compiling for Windows linked at CRAN. rajesh j akshay.raj...@gmail.com wrote: Hi, I built a package in linux and would like to use it in windows. I cant build the package again in windows because it would miss the necessary libraries etc(I'm using Rcpp). So I need to generate a binary version

[R] converting string vector to integer/numeric vector

2010-09-05 Thread rajesh j
Hi, Is it possible to convert a string vector to integer or numeric vector? In my situation I receive data in a string vector and have to convert it based on a given type. -- Rajesh.J [[alternative HTML version deleted]] __

Re: [R] converting string vector to integer/numeric vector

2010-09-05 Thread rajesh j
for e.g., I get the following as a string vector int 4 5 6 after reading the first element, I have to convert this to a integer vector On Sun, Sep 5, 2010 at 6:44 PM, David Winsemius dwinsem...@comcast.netwrote: On Sep 5, 2010, at 8:48 AM, rajesh j wrote: Hi, Is it possible to convert

Re: [R] converting string vector to integer/numeric vector

2010-09-05 Thread rajesh j
, a list has vectors INT 2 3 4 NUM 2.37 4.56 On Sun, Sep 5, 2010 at 6:56 PM, David Winsemius dwinsem...@comcast.netwrote: On Sep 5, 2010, at 9:22 AM, rajesh j wrote: for e.g., I get the following as a string vector int 4 5 6 after reading the first element, I have to convert

Re: [R] converting string vector to integer/numeric vector

2010-09-05 Thread rajesh j
5 . On Sep 5, 2010, at 9:33 AM, rajesh j wrote: The string vector actually comes as a part of a list, and the vector is named int, and the numbers are strings. I then have to make it a vector that is still called int and has 4,5,6 etc. the types are either integer or numeric. The number

Re: [R] converting string vector to integer/numeric vector

2010-09-05 Thread rajesh j
On Sun, Sep 5, 2010 at 9:03 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: On Sun, Sep 5, 2010 at 8:16 AM, rajesh j akshay.raj...@gmail.com wrote: Hi, in a way similar to names(dat), can I address a particular index of every vector? like [0] of all the vectors? So that I could do something like

Re: [R] converting string vector to integer/numeric vector

2010-09-05 Thread rajesh j
- which(names(dat)==INT) nums - which(names(dat)==NUM) dat[ints] - lapply(dat[ints], as.integer) dat[nums] - lapply(dat[nums], as.numeric) str(dat) Cheers, Josh On Sun, Sep 5, 2010 at 6:33 AM, rajesh j akshay.raj...@gmail.com wrote: The string vector actually comes as a part of a list

Re: [R] converting string vector to integer/numeric vector

2010-09-05 Thread rajesh j
(dat) Cheers, Josh On Sun, Sep 5, 2010 at 6:33 AM, rajesh j akshay.raj...@gmail.com wrote: The string vector actually comes as a part of a list, and the vector is named int, and the numbers are strings. I then have to make it a vector that is still called int and has 4,5,6 etc. the types

Re: [R] converting string vector to integer/numeric vector

2010-09-05 Thread rajesh j
great! Thanks On Sun, Sep 5, 2010 at 9:31 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: On Sun, Sep 5, 2010 at 8:36 AM, rajesh j akshay.raj...@gmail.com wrote: No, the examples dont cover it...if i have dat - list(INT = c(1,2,3), NUM = c(2.34,4.56,6.78), INT = c

[R] rbind() overwriting data.frame()

2010-09-06 Thread rajesh j
Hi, first off, I wanna ask how do I declare a data.frame of 0 rows and n columns? Coming to my problem, I have a data.frame of 22 columns by dynamic rows which I insert using rbind. The total number of rows could go upto 2,00,000. The problem is that after about 800 or 900 get inserted rbind

Re: [R] rbind() overwriting data.frame()

2010-09-06 Thread rajesh j
and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens rajesh j Verzonden: maandag 6 september 2010

Re: [R] rbind() overwriting data.frame()

2010-09-06 Thread rajesh j
, value = 6) : invalid factor level, NAs generated On Mon, Sep 6, 2010 at 9:17 PM, rajesh j akshay.raj...@gmail.com wrote: But If I do that how will I resize later? On Mon, Sep 6, 2010 at 8:54 PM, ONKELINX, Thierry thierry.onkel...@inbo.be wrote: This will give a matrix with 0 rows

[R] faster unlist,strsplit,gsub,for

2010-09-09 Thread rajesh j
Hi, I perform the operations unlist,strsplit,gsub and the for loop on a lot of strings and its heavily slowing down the overall system. Is there some way for me to speeden up these operations..maybe like alternate versions that exist which use multiprocessors etc. -- Rajesh.J

Re: [R] faster unlist,strsplit,gsub,for

2010-09-09 Thread rajesh j
like, or how often each of the operations is being done. There are probably many ways of speeding up the code, but with no idea of what the code is, no solutions can be specified. On Thu, Sep 9, 2010 at 11:09 PM, rajesh j akshay.raj...@gmail.com wrote: Hi, I perform the operations unlist

[R] speech spectogram

2009-10-19 Thread rajesh j
Hi, I need to plot a spectogram for a speech signal. Is there a package that can do this? -- Rajesh.J [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Normalizing plot tick values

2010-05-15 Thread rajesh j
Hi, I have a plot whole tick values along the axis have a certain range 0 - x . I need to normalize this range without changing my data files. for e.g., if my plot has tick values at 10,20,30,40,50... i have to make this 2,4,6, etc. but without changing the plot data... I am hoping I can add

Re: [R] Normalizing plot tick values

2010-05-15 Thread rajesh j
Wonderful. Thanks On Sat, May 15, 2010 at 10:47 PM, Henrique Dallazuanna www...@gmail.comwrote: Try this: x - 1:100 plot(x, xaxt = 'n') axis(1, axTicks(1), pretty(x) / 10) On Sat, May 15, 2010 at 2:10 PM, rajesh j akshay.raj...@gmail.com wrote: Hi, I have a plot whole tick values

Re: [R] Normalizing plot tick values

2010-05-16 Thread rajesh j
:10 PM, rajesh j akshay.raj...@gmail.com wrote: Hi, I have a plot whole tick values along the axis have a certain range 0 - x . I need to normalize this range without changing my data files. for e.g., if my plot has tick values at 10,20,30,40,50... i have to make this 2,4,6, etc. but without

Re: [R] Normalizing plot tick values

2010-05-17 Thread rajesh j
Hi, I've solved the problem. This command works axis(1,at=axTicks(1),label = axTicks(1)/100); Thanks for your help ~Rajesh On Mon, May 17, 2010 at 9:55 AM, rajesh j akshay.raj...@gmail.com wrote: Hi, I tried using this in my plot and I get an error saying 'at' and 'labels' lengths differ, 8

[R] multiple qplot histograms in one plot

2010-05-21 Thread rajesh j
Hi, I wish to plot multiple histograms(representing different data so different range along xaxis but y axis is the same) horizontally in ggplot2. I'd like it to look like facets. Is this possible? -- Rajesh.J [[alternative HTML version deleted]]

Re: [R] multiple qplot histograms in one plot

2010-05-21 Thread rajesh j
Awesome. Thats exactly what I want. On Sat, May 22, 2010 at 12:45 AM, Erik Iverson er...@ccbr.umn.edu wrote: rajesh j wrote: Hi, I wish to plot multiple histograms(representing different data so different range along xaxis but y axis is the same) horizontally in ggplot2. I'd like

[R] spectrogram

2010-01-04 Thread rajesh j
Hi, I need to plot spectrogram of a waveform.What package offers this? -- Rajesh.J [[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

[R] seewave package:spectrogram resonance contour

2010-01-05 Thread rajesh j
Hi, I'd like to plot resonance contours on my spectrogram in the seewave package. Is this possible? -- Rajesh.J [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] abline going out of bounds

2009-07-01 Thread rajesh j
Hi, I have a multiplot of 6 rows and 1 column.I need to draw vertical lines in each plot.However when I use abline(v=locator(1)$x) in some plots the line only comes for half the box and it goes beyond the box in others.I suspect this has something to do with the margins.any help? -- Rajesh.J

Re: [R] abline going out of bounds

2009-07-01 Thread rajesh j
. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of rajesh j Sent: Wednesday, July 01, 2009 11:07 AM To: r-help@r-project.org Subject: [R] abline

[R] diagram package treearrow help

2009-07-02 Thread rajesh j
Hi, I would like to write text on top of an arrow.How can I do this? -- Rajesh.J [[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

[R] drawing hmms

2009-07-10 Thread rajesh j
Hi, I need to draw hmm's in R.I also need to include a small plot near each state of the hmm.How can I do this? -- Rajesh.J [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] drawing hmms

2009-07-10 Thread rajesh j
/hmmfit.html http://finzi.psych.upenn.edu/R/library/RHmm/html/HMMSim.html May be some of then may contain things of your interest. Bests milton On Fri, Jul 10, 2009 at 2:43 AM, rajesh j akshay.raj...@gmail.com wrote: Hi, I need to draw hmm's in R.I also need to include a small plot near each

[R] arr.lcol in plotmat from diagram package

2009-07-10 Thread rajesh j
Hi, I wish to use different colours for different arrows. Is this possible? -- Rajesh.J [[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

Re: [R] drawing hmms

2009-07-10 Thread rajesh j
://addictedtor.free.fr/graphiques/ bests milton On Fri, Jul 10, 2009 at 4:04 AM, rajesh j akshay.raj...@gmail.com wrote: Hi, I actually dont need something thats about hmm's.Something like the plotmat in diagram package would suffice.But I need to be able to include plots beside the graph

[R] diagram package graph margins

2009-07-10 Thread rajesh j
Hi, I'm using the diagram package to make some graph networks.But the plot window seems to have some kind of margin thats not letting the graph use entire plot space.How do i remove this? -- Rajesh.J [[alternative HTML version deleted]] __

Re: [R] drawing hmms

2009-07-11 Thread rajesh j
Hi, Thanks a lot! That worked wonders! Dint know R was that flexible.I was looking for packages that do it in vain. On Sat, Jul 11, 2009 at 6:10 PM, Soetaert, Karline k.soeta...@nioo.knaw.nlwrote: Rajesh, To add a plot next each graph node I would open a new figure, with smaller size

[R] geom_histogram help

2009-07-20 Thread rajesh j
Hi, I have a histogram.But I need seperate colours for fixed range of values.for eg. between 2-3 on the x axis a colour.3-4 another colour etc. and the legend has to say what each colour is.How can this be done in geom_histogram? -- Rajesh.J [[alternative HTML version deleted]]

[R] legend title in qplot

2009-07-21 Thread rajesh j
Hi, I've used the following command in qplot qplot(a$V1,geom=histogram,binwidth=0.15,fill = factor(a$V2),ylab=Frequency,xlab=Rate); but the title in the legend shows up as factor(a$V2)...how can i change this? -- Rajesh.J [[alternative HTML version deleted]]

Re: [R] geom_histogram help

2009-07-21 Thread rajesh j
its a function in ggplot2 for plotting complicated histograms. 2009/7/21 Uwe Ligges lig...@statistik.tu-dortmund.de rajesh j wrote: Hi, I have a histogram.But I need seperate colours for fixed range of values.for eg. between 2-3 on the x axis a colour.3-4 another colour etc

[R] modifying sound package function plot.Sample

2009-06-20 Thread rajesh j
Hi, I'm trying to modify this function.I want to remove the existing xaxis(the tick marks and the values below each tick) and make it dynamic so that i can choose whether i want the xaxis at the top or bottom but i cant seem to change that.can somebody help me? plot.Sample -

[R] segment between points on different plots

2009-04-16 Thread rajesh j
Hi, I need to draw a line segment between two points on different plots in the same multigraph.I've tried looking at the zoominplot function in plotrix but havent understood much.any help is appreciated ~Aks [[alternative HTML version deleted]]

[R] multiplot plot spacing and text strip

2009-04-16 Thread rajesh j
Hi everyone, I have a certain requirement and I'm not sure what to do.I need to reduce the spacing between plots in a multiplot. Make them really close together such that they almost touch. Also, I need to add a rectangular strip under my plot(very close to it) such that the strip contains some

[R] multiplot numbering

2009-04-17 Thread rajesh j
Hi, I have a multiplot in which i need to label each plot as (a) (b) etc. preferably on the right side of each plot. My layout is one plot below the other.How can i do this? -- Rajesh.J [[alternative HTML version deleted]] __

[R] drawing data structures

2009-04-19 Thread rajesh j
Hi, I need to represent data structures in a figure.stuff like trees with nodes and pointers etc.can someone guide me to a package that does this? -- Rajesh.J [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] formal argument axes matched by multiple actual arguments

2008-10-10 Thread rajesh j
Hi, I'm using the add-on package sound.I have the following q-loadSample(a.wav) plot.Sample(q,axes=FALSE) this gives me the error. Error in plot.default(sound(s)[1, ], type = l, col = red, ylim = c(-1, : formal argument axes matched by multiple actual arguments I'm guessing the package has

[R] Blowing up portions of a graph

2008-10-13 Thread rajesh j
Hi, I have a really large graph and would like to zoom in on portions of the graph and post them as blocks below the graph.Is there an add on package to do this? -- Rajesh.J I skate to where the puck is going to be, not where it has

[R] abline and locator?

2008-10-13 Thread rajesh j
Hi, I'd like to plot vertical lines on my plot using the locator.But since locator returns two values I end up getting 2 vertical lines for every click.Is there some way only the x coordinate from locator can be returned? -- Rajesh.J

[R] line joining graphs

2009-02-22 Thread rajesh j
hi, I need to draw a line joining graphs,but abline stops within a graph.What do i do to cover portions between two graphs -- Rajesh.J [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] blowup portion of graph beside it

2009-01-22 Thread rajesh j
Hi, I'd like to blow up portions of my graph and put it in boxes beside the graph.Is there an addon to do this? -- Rajesh.J [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] ggplot 2 semi-transparency error

2009-08-18 Thread rajesh j
Hi, I used the command ggplot as follows... p-ggplot(a,aes(x=a$V1,colour=a$V2,fill=a$V2)) p + geom_density(alpha = 0.2,xlim=c(-10,10),ylim=c(0,0.5)) when I say, dev.print(device=postscript,file=/alpha/dct.pdf) I get Warning message: In grid.Call.graphics(L_polygon, x$x, x$y,

[R] histogram scaling

2009-08-19 Thread rajesh j
Hi, I'm drawing two histograms in the same plot.However, my point of comparison is the difference in their x coordinates.But my problem is one histogram is much taller than the other.How can I get them both to the same height? -- Rajesh.J [[alternative HTML version deleted]]

[R] ggplot2 transparent pdf

2009-08-19 Thread rajesh j
Hi, I plotted a histogram using ggplot2 and saved it as a pdf.However, the portions outside the histogram dont appear transparent when I use a non-white bg colour in my latex document.What can I do to make them transparent? -- Rajesh.J [[alternative HTML version deleted]]

[R] Plot area reduction

2009-09-10 Thread rajesh j
Hi, I need my plot to occupy a thin strip-like area but the plot area in R is a square so when I save it and reduce its height to a strip in my document the font in the graph looks flattened. Is there someway i can do this in R itself?..so that my plot is a strip but the font looks normal --