[R] decimal value for p-value

2010-01-06 Thread Roslina Zakaria
Dear r-users,   I conducted a chi-square test using chi.test code and found that my p-value = 1.  My question is, is it possible to get the decimals form of the p-value?  Maybe the p-value is actually 0. before rounding the value.   thank you so much for any help given.  

Re: [R] Generating data from Null Distribution

2010-01-06 Thread Jim Silverton
Hello everyone, Can someone tell me exactly how to generate data from a null distribution for the fisher exact test? I know I have to use the hypergrometric but exactly what commands do I use? Jim [[alternative HTML version deleted]] __

Re: [R] Generating data from Null Distribution

2010-01-06 Thread Robin Hankin
Jim the 2x2 case is reasonably straightforward because the support is quite a small set. With the aylmer package you could do this: a - matrix(c(1,5,7,8),2,2) sample(seq_along(allprobs(a)),100,replace=TRUE,prob=allprobs(a)) [1] 3 2 4 1 3 4 4 4 4 3 3 4 4 2 3 4 5 4 3 3 4 4 2 1 4 3 3 3 4 2 3

Re: [R] The output of script is hidden in console

2010-01-06 Thread Uwe Ligges
On 06.01.2010 02:56, Noli Sicad wrote: If you are using windows, In windows console. Rgui.exe filename.R-The command does not work at all. You have open Rgui.exe first, retrieve filename.R then run the script. I fear this does not answer the question. Noli On 1/5/10,

Re: [R] Data Frame Transpose

2010-01-06 Thread Uwe Ligges
On 06.01.2010 03:14, Noli Sicad wrote: Hi John Thanks for your reply. I think I was posting properly the problem. Here are the error, R script and console errors below. Thanks. Noli ~~~ The error: ~~ Error in data.frame(CROP_ID = x[1, 1], CROPTYPE = x[1, 2], name =

Re: [R] decimal value for p-value

2010-01-06 Thread Uwe Ligges
On 06.01.2010 09:16, Roslina Zakaria wrote: Dear r-users, I conducted a chi-square test using chi.test code and found that my p-value = 1. My question is, is it possible to get the decimals form of the p-value? Maybe the p-value is actually 0. before rounding the value. thank you so

Re: [R] variable three dimensional array

2010-01-06 Thread Jim Lemon
On 01/06/2010 06:04 AM, Fahim Md wrote: I am using R for my bioinformatics research. I am dealing with a graph in which I need to find all possible path. I was looking for some package that solve my purpose but all in vain. There are available algorithms but most of them find shortest path that

Re: [R] debugging package

2010-01-06 Thread Uwe Ligges
On 06.01.2010 02:15, Markus Weisner wrote: I am trying to debug a package to submit it to CRAN and am getting a bunch of error messages. Most of the errors are because of the Rd files which were automatically populated by the package.skeleton function. I find the section on documentation to

[R] Unconsistent behaviour of function cor()

2010-01-06 Thread rforge
Odd behaviour of function cor() in R-2.10.1-64bit-Unix In a dataset with 1366 patients and 244 clinical variables Spearman's Rho was calculated for some fatty acids and BMI and came over something rather odd: R seems to calculate Rho differently on 2.10.1-64bit-Unix and 2.9.0-32bit-Windows

Re: [R] debugging package

2010-01-06 Thread Liviu Andronic
Hello On 1/6/10, Markus Weisner public.mar...@mac.com wrote: * checking whether package 'NFIRS' can be installed ... WARNING Found the following significant warnings: missing link(s): ~~fun~~ CLASSNAME-class See '/Users/markus/Dropbox/NFIRS_S4/NFIRS.Rcheck/00install.out' for

[R] Code flowchart generator for R ?

2010-01-06 Thread Tal Galili
Hello dear R help group, I wish to create a flowchart of my R code (specifically for profiling the connection of different functions). Maybe something similar to this: http://www.fatesoft.com/s2f/ But for R, and that it will be free (open source would be best). After some searching, I found this

[R] Choose variables according to index

2010-01-06 Thread Hadassa Brunschwig
Hi There must have someone already posted this question but I still have not figured how I could do this: Say I have var.1 var.2 var.3 which are large matrices. I would like to do the following loop: for(i in 1:3){ # Pick var.i and do something with it } How can I tell R to do this? Thanks

Re: [R] Choose variables according to index

2010-01-06 Thread Uwe Ligges
On 06.01.2010 11:19, Hadassa Brunschwig wrote: Hi There must have someone already posted this question but I still have not figured how I could do this: So please read the posting guide and according to that search in the mailing list archives and particularly the R FAQs (it is descibred

[R] Odp: Choose variables according to index

2010-01-06 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 06.01.2010 11:19:01: Hi There must have someone already posted this question but I still have not figured how I could do this: Say I have var.1 var.2 var.3 which are large matrices. I would like to do the following loop: Put your var.n to list

Re: [R] The output of script is hidden in console

2010-01-06 Thread Noli Sicad
What output are you expecting? Is a graph? If it is, look for Rplots.pdf in your data directory. Noli On 1/6/10, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: On 06.01.2010 02:56, Noli Sicad wrote: If you are using windows, In windows console. Rgui.exe filename.R-The command

Re: [R] mean for subset

2010-01-06 Thread Matthew Dowle
As can data.table (i.e. do 'having' in one statement) : DT = data.table(DF) DT[,list(n=length(NAME),mean(SCORE)),by=NAME][n==3] NAME n V2 [1,] James 3 64.0 [2,] Tom 3 78.7 but data.table isn't restricted to SQL functions (such as avg), any R functions can be used,

[R] Fwd: string

2010-01-06 Thread robert-mcfadden
I would like to assign a variable y the string: questionspan style=color: #FF; font-weight: bold; font-size: 14pt How can I do it - is it possible? Best, Robert __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Fwd: string

2010-01-06 Thread milton ruser
Hi Robert, I use something like this with grass-R: myvar-paste(questionspan style=,color: #FF; font-weight: bold; font-size: 14pt,,sep=\) myvar May be it works for you. bests milton On Wed, Jan 6, 2010 at 6:22 AM, robert-mcfad...@o2.pl wrote: I would like to assign a variable y the

Re: [R] Fwd: string

2010-01-06 Thread Peter Dalgaard
robert-mcfad...@o2.pl wrote: I would like to assign a variable y the string: questionspan style=color: #FF; font-weight: bold; font-size: 14pt How can I do it - is it possible? Sure, but you need to escape the double quotes. The easiest way is actually to read it in, like (sorry about

Re: [R] Fwd: string

2010-01-06 Thread robert-mcfadden
Thank you very much all of you. (I forgot about directly ' ', instead I used and got errors.) Best, Robert Dnia 6 stycznia 2010 12:22 robert-mcfad...@o2.pl napisał(a): I would like to assign a variable y the string: questionspan style=color: #FF; font-weight: bold; font-size: 14pt

Re: [R] Fwd: string

2010-01-06 Thread Gabor Grothendieck
Some new syntax to handle this without escapes was on my wish list for R and keeps coming up from time to time. As mentioned it would also be useful for latex source, Windows path names, regular expressions and other situations such as this one which require characters that otherwise need to be

Re: [R] solving cubic/quartic equations non-iteratively

2010-01-06 Thread Kasper Kristensen
Try, library(polynom) p - polynomial(c(-8,14,-7,1)) solve(p) Kasper __ 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,

[R] San Francisco Bay Area R User Group (SFBA RUG) Upcoming Meetings

2010-01-06 Thread Jim Porzak
We have a couple of exciting meetings to kick off the new year, both in downtown San Francisco: 12 January: Jeroen Ooms on Web Applications with R 2010 Organizational Meeting: http://www.meetup.com/R-Users/calendar/11203454/ 16 February: John Chanbers on Interfaces and Paradigms at Predictive

[R] Antw: Code flowchart generator for R ?

2010-01-06 Thread Frank Bloos
You may want to look into RAnalyticFlow: http://www.ef-prime.com/products/ranalyticflow_en/index.html Regards, Frank Dr.med. F. Bloos, Ph.D./U.W.O. Oberarzt Klinik f. Anästhesiologie und Intensivtherapie Klinikum der

Re: [R] MacOS X binary of package cairoDevice

2010-01-06 Thread Max Kuhn
Try using the Cairo package if you can. There was a binary for that the last time I installed R. On Wed, Jan 6, 2010 at 1:36 AM, wenjun zheng wjzhen...@gmail.com wrote: Dear Michael and all R users, I find that there's no MacOS X binary of package cairoDevice on CRAN now. Can you or anybody

[R] Boot() Package Question: Multiple Confidence Interval Output

2010-01-06 Thread Adam Carr
Good Morning: I posted an initial question a few days ago and I received some good advice from two R experts. I have re-examined the Davison-Hinkley text paying close attention to the examples of the boot() and boot.ci() in that text and the single example of a similar process in the MASS book

[R] Lattice Plot formatting problem/s

2010-01-06 Thread fishman
Hi I am having difficulty getting the right format for a lattice plot I am trying to produce. Here is a pic of the plot as I get it now http://i235.photobucket.com/albums/ee37/scotrivers/lattice_plot01.jpg and here is the code I am using: RN-read.csv(N:/data.dat,header=T)

[R] plyr: issue with column names when converting one element list to dataframe

2010-01-06 Thread Mark Heckmann
Hi, I have an issue concerning plyr. I have a list l as output from dlply. l $`1` (0.5,1.5] (1.5,2.5] (2.5,3.5] (3.5,4.5] f5_9 0.2342569 0.465995 0.2518892 0.04785894 attr(,split_type) [1] data.frame attr(,split_labels) f15 1 1 When I convert it into a dataframe I get.

Re: [R] plyr: issue with column names when converting one element list to dataframe

2010-01-06 Thread hadley wickham
Hi Mark, Could you send a the results of dput(l)? It will make exploration easier. Hadley On Wed, Jan 6, 2010 at 8:07 AM, Mark Heckmann mark.heckm...@gmx.de wrote: Hi, I have an issue concerning plyr. I have a list l as output from dlply. l $`1`     (0.5,1.5] (1.5,2.5] (2.5,3.5]  

Re: [R] plyr: issue with column names when converting one element list to dataframe

2010-01-06 Thread Mark Heckmann
Hadley, thanks for the quick reply: dput(l) list(structure(c(0.182198327359618, 0.473715651135006, 0.29689366786141, 0.0471923536439665), .Dim = c(1L, 4L), .Dimnames = list(f5_9, c((0.5,1.5], (1.5,2.5], (2.5,3.5], (3.5,4.5] Mark Am 06.01.2010 um 15:48 schrieb hadley wickham: Hi

[R] problem with strptime and 2010 dates

2010-01-06 Thread Larry White
Hi, I'm reading data from a text file and transforming it in R and my date column seems to be getting corrupted. Can someone point out what's wrong? This code worked fine until I added a new date in 2010. thank you. To load the data I run: work_table = read.table(datafilename,header=TRUE)

Re: [R] problem with strptime and 2010 dates

2010-01-06 Thread jim holtman
Use %Y (upper case) for 4 digit years On Wed, Jan 6, 2010 at 10:25 AM, Larry White ljw1...@gmail.com wrote: Hi, I'm reading data from a text file and transforming it in R and my date column seems to be getting corrupted. Can someone point out what's wrong? This code worked fine until I added

Re: [R] Code flowchart generator for R ?

2010-01-06 Thread Kevin Wright
Another idea: The foodweb function in the mvbutils package. Kevin On Wed, Jan 6, 2010 at 4:17 AM, Tal Galili tal.gal...@gmail.com wrote: Hello dear R help group, I wish to create a flowchart of my R code (specifically for profiling the connection of different functions). Maybe something

Re: [R] Lattice Plot formatting problem/s

2010-01-06 Thread Peter Ehlers
fishman wrote: Hi I am having difficulty getting the right format for a lattice plot I am trying to produce. Here is a pic of the plot as I get it now http://i235.photobucket.com/albums/ee37/scotrivers/lattice_plot01.jpg and here is the code I am using: RN-read.csv(N:/data.dat,header=T)

[R] Write a blank line to CSV

2010-01-06 Thread Krishna Tateneni
Greetings and happy new year! I'm attempting to write a series of tables to a CSV file, and would like to insert a blank line after each table. To do this, I use: write.csv(NULL,tables.csv,append=T) which appears to work, except that this warning is thrown: Warning message: In

[R] column width in .dbf files using write.dbf

2010-01-06 Thread Arnaud Mosnier
Dear useRs, Is there a way to define manually columns width when using write.dbf function from the library foreign ? Thanks, Arnaud R version 2.10.0 (2009-10-26) i386-pc-mingw32 [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Write a blank line to CSV

2010-01-06 Thread Gabor Grothendieck
Try this: cat(\n, file = tables.csv, append = TRUE) On Wed, Jan 6, 2010 at 11:36 AM, Krishna Tateneni taten...@gmail.com wrote: Greetings and happy new year! I'm attempting to write a series of tables to a CSV file, and would like to insert a blank line after each table. To do this, I use:

Re: [R] Write a blank line to CSV

2010-01-06 Thread Krishna Tateneni
Perfect, thanks very much! On Wed, Jan 6, 2010 at 10:44 AM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Try this: cat(\n, file = tables.csv, append = TRUE) On Wed, Jan 6, 2010 at 11:36 AM, Krishna Tateneni taten...@gmail.com wrote: Greetings and happy new year! I'm attempting

[R] [R-pkgs] fortunes: 250th fortune

2010-01-06 Thread Achim Zeileis
Dear useRs, it's a new year and time for a new CRAN-version of the fortunes package. Version 1.3-7 is now online at http://CRAN.R-project.org/package=fortunes which contains the 250th fortune: R fortune(250) As Obi-Wan Kenobi may have said in Star Wars: Use the source, Luke! -- Barry

Re: [R] problem with strptime and 2010 dates

2010-01-06 Thread Prof Brian Ripley
On Wed, 6 Jan 2010, Larry White wrote: Hi, I'm reading data from a text file and transforming it in R and my date column seems to be getting corrupted. Can someone point out what's wrong? This code worked fine until I added a new date in 2010. Seems unlikely, but we don't have a reproducible

[R] problem with odfWeave

2010-01-06 Thread Joel GOMBIN
Hello, I have encountered problems using odfdWeave. I actually have the same error message as was reported in this message ( http://tolstoy.newcastle.edu.au/R/e6/help/09/01/0872.html), but I don't quite understand the answer made by Max Kuhn (You need to cat the results using odfCAt, otherwise

Re: [R] bootstrap help

2010-01-06 Thread luciferyan
I have a similar question. I want to generate list of 50 bootstrap samples, it can be done by: lapply(1:50,function(i){data[sample(nrow(data),size=nrow(data),replace=TRUE),]}) From these bootstrap samples, I want to work out the Bootstrap estimates, which is E[y]/E[x]. How can I do it? '

Re: [R] problem with odfWeave

2010-01-06 Thread Sarah Goslee
Hi Joel, If you actually want to make a table, you need to use odfTable. There are examples in the help for that function. Same for odfCat, but instead of creating a table, that will print your output. eg to print your output: echo=FALSE= odfCat(some random normal data:, rnorm(5)) # from

Re: [R] Question regarding if statement in while loop

2010-01-06 Thread Stephanie Coffey
Stephan, Patrick Carl, Thanks very much for your help...and during the holidays no less! Putting my function within a try() worked perfectly!! Happy New Year, Stephanie On Sat, Dec 26, 2009 at 1:38 PM, Stephan Kolassa stephan.kola...@gmx.de wrote: Hi Stephanie, it sounds like R's exception

[R] What does the warning message exactly say?

2010-01-06 Thread LinZhongjun
Hello! Sometimes, the WinBUGS prompts a warning message saying something like mcmc can be dangerous. What does the warning message exactly say? Can someone tell me? Thank you very much! Best wishes

[R] Increment in loop

2010-01-06 Thread Muhammad Rahiz
useRs, I'm getting limited success in trying to apply increment in a loop. The following defined function creates a +1 increment incr - function(x){ eval.parent(substitute(x - x + 1)) print(x) } How do I apply it in a loop on my test dataset, x1, so that the procedure becomes x1[c(1:2)]

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-06 Thread Steve Rowley
Date: Sat, 02 Jan 2010 17:38:31 +0100 From: Uwe Ligges lig...@statistik.tu-dortmund.de Steve Rowley wrote: Is there any way to do this from the Windows binary .zip files, or from the installations generated thereby? Well, internally, you can do somewthing as R's help system does, but it

Re: [R] Code flowchart generator for R ?

2010-01-06 Thread Tal Galili
Hello Frank and Kevin. Kevin - I seem to have found the solution to my problem with your suggestion of foodweb, thank you very much for the reference ! Frank - I never heard about this, I just installed and tried RanalyticFlow. I admit it is a *very* interesting Idea which I wish would have been

[R] math function - MDS method

2010-01-06 Thread Grześ
Hi, I need math function which is used in: isoMDS, Sammon and metaMDS method. Anybody know where I may find it? Any manual or webside? I would be very happy Thanks a lot ! -- View this message in context: http://n4.nabble.com/math-function-MDS-method-tp1008294p1008294.html Sent from the R

[R] How to get bubbles on times series plot

2010-01-06 Thread cirtey
Hi; lissage-function(variable) { library(pastecs) ENTREE.ts - ts(projet$ENTREE) ENTREE.dec - decaverage(ENTREE.ts, order=variable, sides=2, ends=fill) plot(ENTREE.dec, col=c(1, 4), xlab=temps,ylab=Nombre d'entrées,main=paste(Moyenne mobile d'ordre ,variable, sous R), stack=FALSE,

[R] February 2010***New R Courses*** by XLSolutions Corp at 9 USA Cities: San Francisco, New York, Washington DC, Houston, Boston, Las Vegas, Seattle, etc

2010-01-06 Thread Sue Turner
Happy New Year ! XLSolutions February 2010 R courses schedule is now available online at 9 USA cities for with 13 new courses: *** Suggest a future course date/city (1) R-PLUS: A Point-and-Click Approach to R (2) S-PLUS / R : Programming Essentials. (3) R/S+ Fundamentals and Programming

[R] documenting methods for S4 objects

2010-01-06 Thread Markus Weisner
I put out an email last night with output from my package check. Many thanks to Uwe and Liviu who got back to me quickly about how to fix some of the errors. I realize though, that I had some additional questions / confusion points in terms of documenting packages. 1) I seem to understand how

Re: [R] What does the warning message exactly say?

2010-01-06 Thread Uwe Ligges
On 06.01.2010 19:33, LinZhongjun wrote: Hello! Sometimes, the WinBUGS prompts a warning message saying something like mcmc can be dangerous. Maybe a question for the WinBUGS mailing list (if you specify the context of the message), isn't it? Uwe Ligges What does the warning

[R] Working with source file

2010-01-06 Thread D Kelly O'Day
I am trying to build an easy to use climate data analysis tool kit that will let non-R users run my detailed r script with minimum R learning curve effort. Here's an example: link - http://chartsgraphs.wordpress.com/files/2010/01/nsidc_trend_plot_2.doc; source(link) This lets user run my R

Re: [R] bootstrap help

2010-01-06 Thread Dennis Murphy
Hi: Does this work? df - data.frame(x = rnorm(49, mean = 1), y = rnorm(49, mean = 2)) # Generate matrix of bootstrap indices idx - matrix(sample(1:nrow(df), 50 * nrow(df), replace = TRUE), nrow = nrow(df)) dim(idx) # [1] 49 50 # Generate the corresponding x, y, bootstrap samples by

[R] clues package for cluster selection

2010-01-06 Thread Jon Toledo
Y have only continuos quantitative data and when I trie the function I get next message res-clues(C,quiet=TRUE) Error en ChooseK_sil(y, y2 = y, n0, alpha, eps, itmax, second, K2.vec, : el objeto (list) no puede ser coercionado a 'double' Last line would be the object could (list) not be

Re: [R] math function - MDS method

2010-01-06 Thread stephen sefick
isoMDS Sammon metaMDS and there associated help files are a good place to start hth Stephen On Wed, Jan 6, 2010 at 1:30 PM, Grześ gregori...@gmail.com wrote: Hi, I need math function which is used in: isoMDS, Sammon and metaMDS method. Anybody know where I may find it? Any manual or

[R] is aov equivalent to lme for split-plot analysis?

2010-01-06 Thread Rafael Rubio de Casas
Dear R community, I am trying to do a split-plot analysis as follows. I have a data set (“morf”) with plant data from 6 “blocks” at different latitudes, each divided in 3 plots. The full-plot “treatment” is “soil type” and has three levels. Within each plot I have two levels of radiation,

[R] positive log likelihood and BIC values from mCLUST analysis

2010-01-06 Thread Barry Hall
My question is with respect to mCLUST and the values of BIC and log likelihood. The relevant part of my R script is: # BEGIN MDS ANALYSIS # #load data data - read.table(Ecoli33_Barry.dis, header = TRUE, row.names = 1) #perform MDS Scaling mds

Re: [R] Working with source file

2010-01-06 Thread Barry Rowlingson
On Wed, Jan 6, 2010 at 8:34 PM, D Kelly O'Day ko...@processtrends.comwrote: I am trying to build an easy to use climate data analysis tool kit that will let non-R users run my detailed r script with minimum R learning curve effort. Here's an example: link -

Re: [R] math function - MDS method

2010-01-06 Thread Grześ
Yes I know but I need math function. Every method has a little bit different math function. My question is: How look this function like? stephen sefick wrote: isoMDS Sammon metaMDS and there associated help files are a good place to start hth Stephen On Wed, Jan 6, 2010 at 1:30

[R] Suppress getOptions() in Stangle

2010-01-06 Thread Derek Ogle
Hello, I am creating PDF handouts using Sweave for a beginner's R workshop. I want to include the R code for the handout in an appendix as described (using the listings LaTeX package) as described in ... http://n4.nabble.com/including-Sweave-tangled-code-in-Rnw-document-tp875112p875112.html

Re: [R] math function - MDS method

2010-01-06 Thread stephen sefick
I don't know what you mean by math function. On Wed, Jan 6, 2010 at 3:06 PM, Grześ gregori...@gmail.com wrote: Yes I know but I need math function. Every method has a little bit different math function. My question is: How look this function like? stephen sefick wrote: isoMDS Sammon

Re: [R] math function - MDS method

2010-01-06 Thread stephen sefick
You can look at the C code called by the function. On Wed, Jan 6, 2010 at 3:21 PM, stephen sefick ssef...@gmail.com wrote: I don't know what you mean by math function. On Wed, Jan 6, 2010 at 3:06 PM, Grześ gregori...@gmail.com wrote: Yes I know but I need math function. Every method has a

[R] Lyapunov matrix equation

2010-01-06 Thread Allen L
Dear R forumers, Wondering if anyone knows of a package that can solve the lyapunov matrix equation C=ACA^T + B in R? Currently I am exporting to Mathematica, solving and bringing the results back in, but this is not ideal. Can R do this? Thanks in advance, Allen -- View this message in context:

Re: [R] svm

2010-01-06 Thread Amy Hessen
Hi Steve, Thank you very much for your reply. I’m trying to do something systematic/general in the program so that I can try different datasets without changing much in the program (without knowing the name of the class label that has different name from dataset to another…) Could you

[R] boxplot help

2010-01-06 Thread oscar linares
Dear Rexperts, I am trying to add a '+' identifying the mean in a boxplot using the following sizelist - split(size, grp) centers - boxplot(sizelist, style.bxp = att, medpch = o, ylab = Prostate Volume (cm3)) points(centers, unlist(lapply(sizelist, mean)), pch = +) But, I

[R] R programmer Ann Arbor Area

2010-01-06 Thread oscar linares
Dear Rs Our group is in need of an R programmer to work on Clinical Pharmacokinetics Project in Ann Arbor, Michigan Area. Interested R programmers send e-mail to: olina...@umich.edu Thanks:-) -- Oscar Oscar A. Linares, MD Translational Medicine Unit LaPlaisance Bay, Bolles Harbor Monroe,

Re: [R] boxplot help

2010-01-06 Thread Dennis Murphy
Hi: Try this: First put your data into a data frame (it's not necessary, but it's easier) ol - data.frame(grp = grp, size = size) boxplot(size ~ grp, data = ol, style = 'att', medpch = o, ylab = Prostate Volume (cm3)) mns - with(ol, tapply(size, grp, mean)) points(1:5, mns, pch = '+')

Re: [R] positive log likelihood and BIC values from mCLUST analysis

2010-01-06 Thread Peter Dalgaard
Barry Hall wrote: My question is with respect to mCLUST and the values of BIC and log likelihood. The relevant part of my R script is: # BEGIN MDS ANALYSIS # #load data data - read.table(Ecoli33_Barry.dis, header = TRUE, row.names = 1)

[R] MakeActiveBinding help needed

2010-01-06 Thread Carl Witthoft
Hi, I wanted a QD way to open a new graphics window but keep the focus in the console window (under Windows and the Rgui), so I wrote a line into my Rprofile.site file as follows: invisible(makeActiveBinding('newdev', function(...) dev.new(restoreConsole=T), .GlobalEnv)) (That is all on

Re: [R] sample weight for box plot?

2010-01-06 Thread sean_parks
Thanks David. I used the wtd.quantile in Hmisc. Works great and is easy for a newbie like me. I am attempting to send the quantile values to boxplot, and it works for the most part. My problem is that one of my extreme values appears as a dot instead of the whisker. It basically looks like an

Re: [R] sample weight for box plot?

2010-01-06 Thread David Winsemius
On Jan 6, 2010, at 5:42 PM, sean_parks wrote: bxp.data - c(0,0.9,3.5,9.4,30.6) boxplot(bxp.data) Try: boxplot(bxp.data, range=5) David Winsemius, MD Heritage Laboratories West Hartford, CT __ R-help@r-project.org mailing list

[R] plot

2010-01-06 Thread lse1986
Hey guys, any chance i can do some plots similar to these in R? http://i.imagehost.org/0785/Untitled_3.jpg -- View this message in context: http://n4.nabble.com/plot-tp1008481p1008481.html Sent from the R help mailing list archive at Nabble.com. __

[R] How do I upside down colorkey of levelplot?

2010-01-06 Thread Minho Chae
Hi, all. I made the main figure of levelplot upside down by transposing and proper indexing; upper left corner is the biginning of matrix. However, I can't figure out how I can upside down the vertical colorkey right side of the main figure. Any help will be greatly appreciated. Minho

Re: [R] How do I upside down colorkey of levelplot?

2010-01-06 Thread David Winsemius
The order of the arguments to the key lists determines their placement order. On Jan 6, 2010, at 5:59 PM, Minho Chae wrote: Hi, all. I made the main figure of levelplot upside down by transposing and proper indexing; upper left corner is the biginning of matrix. However, I can't figure out

Re: [R] sample weight for box plot?

2010-01-06 Thread Peter Ehlers
David Winsemius wrote: On Jan 6, 2010, at 5:42 PM, sean_parks wrote: bxp.data - c(0,0.9,3.5,9.4,30.6) boxplot(bxp.data) Try: boxplot(bxp.data, range=5) or range=0 to draw whiskers to the data extremes (as mentioned in ?boxplot!) -Peter Ehlers David Winsemius, MD Heritage

Re: [R] plot

2010-01-06 Thread Noli Sicad
Have a look on these R graphs. http://www.stat.auckland.ac.nz/~paul/RGraphics/rgraphics.html http://www.statmethods.net/graphs/line.html http://addictedtor.free.fr/graphiques/allgraph.php Noli On 1/7/10, lse1986 sam_eden1...@yahoo.co.uk wrote: Hey guys, any chance i can do some plots

Re: [R] MakeActiveBinding help needed

2010-01-06 Thread Bert Gunter
This one made my head spin! I think the problem might be that you are calling the dev.new() command in your script before loading the grDevice (not graphics) package. The easiest way to deal with this -- documented in ?Startup, btw -- is just to modify your original function to:

Re: [R] svm

2010-01-06 Thread Steve Lianoglou
Hi Amy, On Wed, Jan 6, 2010 at 4:33 PM, Amy Hessen amy_4_5...@hotmail.com wrote: Hi Steve, Thank you very much for your reply. I’m trying to do something systematic/general in the program so that I can try different datasets without changing much in the program (without knowing the name of

Re: [R] clues package for cluster selection

2010-01-06 Thread Peter Ehlers
Jon Toledo wrote: Y have only continuos quantitative data and when I trie the function I get next message res-clues(C,quiet=TRUE) Error en ChooseK_sil(y, y2 = y, n0, alpha, eps, itmax, second, K2.vec, : el objeto (list) no puede ser coercionado a 'double' Last line would be the object

[R] Calling FING.EXE under RGui.EXE for windows.

2010-01-06 Thread John Schexnayder
This is sort of a strange bug. Not show stopping, but annoying. I was wondering if anyone else has noticed this and reported it before I submit a bug report. I noticed while running the RGui and attempting to debug one of my scripts that I encountered a Windows error informing me that Find

Re: [R] Calling FING.EXE under RGui.EXE for windows.

2010-01-06 Thread Gabor Grothendieck
If you have C:\Rtools\bin on your PATH note that it contains a UNIX-like find utility that conflicts with the find utility in Windows. If that is the problem then remove that from your PATH and then run the batch file. The batchfiles distribution at http://batchfiles.googlecode.com has

Re: [R] xyplot: adjusting the scale (min, max tick)

2010-01-06 Thread Jay
Perfect, that piece of code did exactly what I wanted. However, I stumpled upon a new problem, now my data is plotted on a totally wrong scale. The y-values are all between 160k and 500k, BUT now with that option I find that the plots are between 0 and 50 (?!?). What did I do wrong? This plots

[R] prettyR: object with xtab doesn't work in R 2.10.1

2010-01-06 Thread Nguyen Dinh Nguyen
Dear Jim and R helpers, I cannot recall an object labelled for an xtab function (prettyR package) in R 2.10.1, but it works well in previous version, say 2.8.1 (I am using PC, Window XP service pack 3) Could you please check this problem? Many thanks Nguyen D Nguyen Garvan Institute, Sydney For

Re: [R] plot

2010-01-06 Thread lse1986
Thank you very much. Much appreciated :) Noli Sicad wrote: Have a look on these R graphs. http://www.stat.auckland.ac.nz/~paul/RGraphics/rgraphics.html http://www.statmethods.net/graphs/line.html http://addictedtor.free.fr/graphiques/allgraph.php Noli On 1/7/10, lse1986

Re: [R] How to get bubbles on times series plot

2010-01-06 Thread David Winsemius
On Jan 6, 2010, at 12:40 PM, cirtey wrote: Hi; lissage-function(variable) { library(pastecs) ENTREE.ts - ts(projet$ENTREE) ENTREE.dec - decaverage(ENTREE.ts, order=variable, sides=2, ends=fill) plot(ENTREE.dec, col=c(1, 4), xlab=temps,ylab=Nombre d'entrées,main=paste(Moyenne

[R] PlayStation3 with Ubuntu 9.10. revolution-r: Depends: r-revolution-revobase but it is not installable

2010-01-06 Thread Steve Mew
PlayStation3 with Ubuntu 9.10. revolution-r: Depends: r-revolution-revobase but it is not installable Hi All, I have a PlayStation3 setup with Ubuntu 9.10. Install R went fine with sudo apt-get install r-base-core I then attempted to install Revolution packages with sudo apt-get install

[R] PlayStation3 with Ubuntu 9.10. revolution-r: Depends: r-revolution-revobase but it is not installable

2010-01-06 Thread Steve Mew
PlayStation3 with Ubuntu 9.10. revolution-r: Depends: r-revolution-revobase but it is not installable Hi All, I have a PlayStation3 setup with Ubuntu 9.10. Install R went fine with sudo apt-get install r-base-core I then attempted to install Revolution packages with sudo apt-get install

[R] adding 3D arrows to 3D plots

2010-01-06 Thread Eben J. Gering
Greetings, I would like to add 3D arrows (i.e. arrow-headed vectors linking X1Y1Z1 to X2,Y2,Z2) to a 3D plot; ideally the sort of plot that can be rotated interactively. Is this possible using plot3d, or another 3d plotter in R? While it is easy to draw segments in plot3d (e.g. below), I

Re: [R] PlayStation3 with Ubuntu 9.10. revolution-r: Depends: r-revolution-revobase but it is not installable

2010-01-06 Thread Dirk Eddelbuettel
On 6 January 2010 at 19:03, Steve Mew wrote: | PlayStation3 with Ubuntu 9.10. revolution-r: Depends: r-revolution-revobase | but it is not installable | | Hi All, | I have a PlayStation3 setup with Ubuntu 9.10. | Install R went fine with sudo apt-get install r-base-core | I then attempted

[R] How do I calculate r^2 of SSasymp non-linear regression model in R?

2010-01-06 Thread Zia Ahmed
Is it possible to get r^2 value of SSasymp non-linear regression model in R. Does anyone have any suggestions ? Thanks Zia __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Finally, the first R spam!

2010-01-06 Thread David Croll
Hi R friends and users, Just for fun (or concern): I received a R spam mail. Perhaps the first in history... Subject: R Courses and Consulting From: R Training33 rtrainers...@gmail.com R Courses and Consulting Dear Sir, We are working on our 2010 R training schedule and would like to

[R] R treating time

2010-01-06 Thread chrisli1223
Hi all, I have imported a value 3:00 from Excel into R using read.csv. I want R to recognise it as 3:00am (time data). How do I do it? Thanks in advance, Chris -- View this message in context: http://n4.nabble.com/R-treating-time-tp1008608p1008608.html Sent from the R help mailing list

Re: [R] R treating time

2010-01-06 Thread Dennis Murphy
Hi: Let x - '3:00' The R package for data that are only dates or only times is chron. For times, it appears that the strings need to be in the form hh:mm:ss on a 24-hour clock, so for example, 1:30 PM should be expressed as 13:30:00. [I didn't see any option for a 12-hour clock with an optional