[R] Infinite series

2008-09-13 Thread Majid Sarmad
Is there any routine/trick in R to compute a convergence series? __ 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

[R] brushing with parallel coordinates

2008-09-13 Thread June Kim
Hello, I have a multivariate data with a single Y variable and 9 X variables. I tried drawing a parallel coordinates with the data set without a problem, using lattice library. However, I want to do some brushing on the graph. For example, I want to distinguish the group of data lines of which Y v

Re: [R] R for data mining remotely

2008-09-13 Thread Felix Andrews
Rattle is a GTK+ application. For remote access one would typically write a web application. A relatively simple user interface could be built on the caret package, maybe. Another option might be to use a remote messaging system like SOAP to submit big jobs to a server. Perhaps you could adapt Rat

Re: [R] Scatterplot with data grouped by color

2008-09-13 Thread Jim Lemon
Amanda Young wrote: Hi, I am a complete R rookie so this question is probably really simple but I haven't found an answer on the web that I can understand. My data frame has 3 columns, A, B and C. A and B have numbers (about 8000 rows), C is a factor which is either true or false. So I can

[R] Symbols On a Capscale Object Biplot

2008-09-13 Thread Rodrigo Aluizio
Hi, I'm a beginner with R, but I'm getting excellent results with it. Well I've got an capscale object (vegan package) and I want to made a biplot with symbols representing six groups of areas. With the plot.cca function and some par attributes (like 'labels') I was able to substitute the sample

[R] Symbols on a capscale object plot

2008-09-13 Thread Rodrigo Aluizio
Hi, I'm a beginner with R, but I'm getting excellent results with it. Well I've got an capscale object (vegan package) and I want to made a biplot with symbols representing six groups of areas. With the plot.cca function and some par attributes (like 'labels') I was able to substitute the samples

Re: [R] Symbols on a capscale object plot

2008-09-13 Thread Mark Difford
Hi Rodrigo, >> I would like to use something like squares, triangles and circles (filled >> and empty). You would normally add this using points(): ?points ## plot(1:10, type="n") points(1:5, pch=21:25, bg=1:5) points(6:10, pch=21:25, bg=c(1,"darkgrey","cyan", "bisque")) points(6:10, y=rep(6,5)

Re: [R] making spearman correlation cor() call fail with log(0) as input

2008-09-13 Thread Martin Maechler
> "TS" == Timur Shtatland <[EMAIL PROTECTED]> > on Fri, 12 Sep 2008 11:52:25 -0400 writes: TS> I am more used to getting an error if you try to take TS> the log of 0, like this (in Perl): TS> perl -le 'for my $num (1, 0, -1, -2) { print log $num; TS> }' 0 Can't take lo

Re: [R] QCC - Change Background Color and Remove X Axis Text

2008-09-13 Thread Henrique Dallazuanna
Try this: library(qcc) data(pistonrings) attach(pistonrings) diameter <- qcc.groups(diameter, sample) qx <- qcc(diameter[1:25,], type="xbar", plot = FALSE) .qcc.options$bg.margin = "#FF" par(xaxt = "n") plot(qx) On Fri, Sep 12, 2008 at 10:29 PM, Dean Yergens <[EMAIL PROTECTED]> wrote: >

Re: [R] Scatterplot with data grouped by color

2008-09-13 Thread Martin Maechler
> "JIV" == Jorge Ivan Velez <[EMAIL PROTECTED]> > on Fri, 12 Sep 2008 18:39:04 -0400 writes: JIV> Dear Amanda, JIV> Try this: JIV> # Data set JIV> set.seed(123) JIV> DF=data.frame(A=rnorm(10),B=rpois(10,10),C=sample(1:3,10,replace=T)) JIV> attach(DF) JIV>

[R] A problem about the color of symbols exceeding the coordinate limits

2008-09-13 Thread Yihui Xie
Hi all, I don't know whether this is a bug in the function symbols(): when I use semi-transparency for the background color in the symbols plot, the colors of symols which exceed the coordinates limits will be lost (i.e. the symbols will be blank). For example: > symbols(1:5, 1:5, 1:5, bg = rgb(0

Re: [R] brushing with parallel coordinates

2008-09-13 Thread Greg Snow
You probably want either the ipcp function from the iplots package or the rggobi package (along with the ggobi program). Neither uses lattice, iplots uses java and rggobi passes your data to the ggobi program which does a lot with brushing/spinning/etc. For general brushing there is also the t

Re: [R] Greyed text in the background of a plot

2008-09-13 Thread Yihui Xie
Hi Mark, Actually I have been considering for a long time to include such kinds of animations in the package 'animation'. In the next release (1.0-2), you will see a new function 'Rosling.bubbles()', which can generate animations like: http://animation.yihui.name/da:ts:hans_rosling_s_talk Of cou

[R] moving from aov() to lmer()

2008-09-13 Thread roberto toro
Hello, I've used this command to analyse changes in brain volume: mod1<-aov(Volume~Sex*Lobe*Tissue+Error(Subject/(Lobe*Tissue)),data.vslt) I'm comparing males/females. For every subject I have 8 volume measurements (4 different brain lobes and 2 different tissues (grey/white matter)). As aov() p

Re: [R] moving from aov() to lmer()

2008-09-13 Thread roberto toro
Hello, I'm using this command to analyse changes in brain volume: mod1<-aov(Volume~Sex*Lobe*Tissue+Error(Subject/(Lobe*Tissue)),data.vslt) I'm comparing males/females. For every subject I have 8 volume measurements (4 different brain lobes and 2 different tissues (grey/white matter)). Bu

[R] R rpm for Mandriva 2008.1 ?

2008-09-13 Thread Joanne Demmler
Are there any R rpm's for Mandriva 2008.1? I found a couple of dodgy ones that wouldn't install so far (rpmfind.net). (Sorry that seems so far the only Linux distribution that recognizes my hardware on my new laptop correctly. I'm more familiar to Fedora and Suse so perhaps I'm just doing some

[R] Beautify R scripts in microsoft word

2008-09-13 Thread Daren Tan
I am generating a report containing several R scripts in the appendix. Is there any way to "beautify" the R source codes in microsoft word, similar to what we see in tinn-R ? Thanks _ [[alternative HTML version deleted]]

Re: [R] R rpm for Mandriva 2008.1 ?

2008-09-13 Thread Andre Nathan
Hi Joanne There is a package in Mandriva's repository, called "R-base". You can isntall it with "urpmi R-base". HTH, Andre On Sat, 2008-09-13 at 16:48 +0100, Joanne Demmler wrote: > Are there any R rpm's for Mandriva 2008.1? I found a couple of dodgy > ones that wouldn't install so far (rpmfind

Re: [R] Symbols on a capscale object plot

2008-09-13 Thread Rodrigo Aluizio
Thank You Mark, With your tip now I'm able to chance the sites names for real symbols. Well, now I just have to find out how to change groups of sites names, that compose a 'biofacies', with different symbols (actually six groups) in the same plot. Maybe if I can define a factor that specifies the

Re: [R] R rpm for Mandriva 2008.1 ?

2008-09-13 Thread Joanne Demmler
Found it, but there seems to be a dependency clash. Over the command line I get an error mentioning, that some packages are older than the ones installed and over the manager I simply get a message "can't install package". Joanne __ R-help@r-project

Re: [R] Beautify R scripts in microsoft word

2008-09-13 Thread Dale Steele
Open script in Tinn-R, select script to copy. Then use menu Edit:Copy formatted (to export) --> RTF Paste into MS word. --Dale On Sat, Sep 13, 2008 at 1:30 PM, Daren Tan <[EMAIL PROTECTED]> wrote: > > I am generating a report containing several R scripts in the appendix. Is > there any way to

Re: [R] Symbols on a capscale object plot

2008-09-13 Thread Mark Difford
Hi Rodrigo, >> Maybe if I can define a factor that specifies these groups and use this >> factor to assign the symbols. Yes, that's the idea. Some ordination-oriented packages make this easier to do than others. You should look through vegan carefully to see the full offering. Nevertheless, it's

Re: [R] Symbols on a capscale object plot

2008-09-13 Thread Mark Difford
Hi Rogrido, Sorry: The first points() call was missing a vital comma. It should have been. points(ord.obj$scores[mydf$Site=="MarkerA", ], pch=21, bg="red") See ?"[" Mark Difford wrote: > > Hi Rodrigo, > >>> Maybe if I can define a factor that specifies these groups and use this >>> factor t

Re: [R] Parallel stem-and-leaf displays

2008-09-13 Thread Celia Chen
Thank you Jim. Here I creat an example: A<-c(1.1,1.2,2.2,1.3, 1.5, 2.5) B<-c(2.2,2.3,2.4,2.2, 2.0,1.9, 2.5) I will need to draw the parallel stem-and-leaf displays to show the difference in trend/pattern between the two data patches. And I think parellel stem-

Re: [R] brushing with parallel coordinates

2008-09-13 Thread Deepayan Sarkar
On 9/13/08, June Kim <[EMAIL PROTECTED]> wrote: > Hello, > > I have a multivariate data with a single Y variable and 9 X variables. > I tried drawing a parallel coordinates with the data set without a > problem, using lattice library. However, I want to do some brushing on > the graph. For exam

[R] Querry in Biclust

2008-09-13 Thread ram basnet
Dear R users,   I am new user of R as well as Biclust package. I am handling data set of (236 genes and 166 conditions) and i knew the importance of Biclustering. Now, I am able to get some results but can not understand the result as what i am thinking. My thinking may be wrong. I used followin

Re: [R] Symbols on a capscale object plot

2008-09-13 Thread Rodrigo Aluizio
Finally I got it. I'm posting it here for people that need it in the future. Bellow is the code that solved the issue. Thank you so much Mark. Without your help I'm not sure if I would be able to do that, at least not in time! library(vegan) library(xlsReadWrite) PotiAbio<-read.xls('PotiAbioCanoc

Re: [R] Parallel stem-and-leaf displays

2008-09-13 Thread David Winsemius
On Sep 13, 2008, at 4:21 PM, Celia Chen wrote: Thank you Jim. Here I creat an example: A<-c(1.1,1.2,2.2,1.3, 1.5, 2.5) B<-c(2.2,2.3,2.4,2.2, 2.0,1.9, 2.5) I will need to draw the parallel stem-and-leaf displays to show the difference in trend/pattern betw

Re: [R] Beautify R scripts in microsoft word

2008-09-13 Thread Yihui Xie
Or use the software Highlight: http://www.andre-simon.de/ (Remember that you may need to change the R definition file 'r.lang' using the function highlight.def() in package 'animation') P. S. sorry Dale, I often forget to click "Reply to all" and as a result, send my reply to a single person :-(

Re: [R] Beautify R scripts in microsoft word

2008-09-13 Thread Yihui Xie
And if you don't want to type spaces or indent manually when you write your code, you may also use the function 'tidy.source()' (in the package 'animation') to add spaces and indent automatically. For example: http://animation.yihui.name/animation:misc#tidy_up_r_source Hope this will "beautify" yo

[R] Error Running TinnR with R

2008-09-13 Thread Videep
Hello All, I am using Tinn-R (v 2.0.0.7) integrated with R (v 2.7.2) on a 32-bit Windows Vista system. When I try to run a code and send it to R from Tinn-R, I get the following error message; “Error in source(.trPaths[5], echo = T) : object ".trPaths" not found” I was using an earlier version

Re: [R] Error Running TinnR with R

2008-09-13 Thread Yihui Xie
You should edit the file "Rprofile.site", as described in http://sourceforge.net/forum/forum.php?forum_id=864071 During the start of R, some values (paths) will be assigned to ".trPaths". Yihui On Sun, Sep 14, 2008 at 11:52 AM, Videep <[EMAIL PROTECTED]> wrote: > > Hello All, > > I am using Tinn

[R] Please help me in Converting this from C# to R

2008-09-13 Thread rajivv
Random r = new Random(); DirectedGraph graph = GetGraph(); decimal B = 0.1m; decimal D = 0.05m; int nodes = graph.NodesCount; decimal[] E = new decimal[nodes]; decimal[] P = new decimal[nodes];