Re: [R] Second axis on bottom of graph

2014-05-24 Thread Hurr
Thanks again Jim. I stuck xaxs="i" in the existing par() command and it worked as I wanted it. I haven't looked at the documentation yet, but that's next. Hurr -- View this message in context: http://r.789695.n4.nabble.com/Second-axis-on-bottom-of-graph-tp4690696p4691204.html Sent from the R h

Re: [R] Second axis on bottom of graph

2014-05-24 Thread Jim Lemon
On Sat, 24 May 2014 02:41:16 PM Hurr wrote: > Another wish is to make the left and right > plot borders match the axis limits I > have placed on the second axis using > "xlim=" in plot(). > But the axis is shorter than the > plot and I want them equal. > How do I do that? > Hurr > Perhaps you are

Re: [R] Balloon plot scaling problem

2014-05-24 Thread Jim Lemon
On Sat, 24 May 2014 08:56:59 AM David Winsemius wrote: > http://stackoverflow.com/questions/20458379/changing-size-of-the-dots-in-a-b > alloon-plot-and-keeping-zero-values: Hi David, I checked this out and it appears to be a solution to the problem of zero values becoming invisible when a size tr

Re: [R] Second axis on bottom of graph

2014-05-24 Thread Hurr
Another wish is to make the left and right plot borders match the axis limits I have placed on the second axis using "xlim=" in plot(). But the axis is shorter than the plot and I want them equal. How do I do that? Hurr -- View this message in context: http://r.789695.n4.nabble.com/Second-

[R] dbFD function in FD package

2014-05-24 Thread Crystal Ernst
I was looking forward to trying out the FD package for functional diversity, but I can't seem to get past the first step of setting up the matrices. I have found examples online and it appears I'm doing it correctly: species trait matrix with one species listed on each row (traits in columns)

Re: [R] GETTING CLUSTERING RESULTS IN SOM , LIKE K-MEAN

2014-05-24 Thread Sarah Goslee
Based on the example in ?som (did you work through that and look at the various outputs?), you need to use som.prediction() to get the predicted class values. Sarah On Sat, May 24, 2014 at 1:28 AM, Ashis Deb wrote: > Hi all, > > > I was doingk-mean clusteringthr

[R] Generating random variables with given pairwise correlations

2014-05-24 Thread Sourav Ghosh
I want to generate 2 continuous random variables `Q1`, `Q2` (quantitative traits) and 2 binary random variables `Z1`, `Z2` (binary traits) with given pairwise correlations between all possible pairs of them. Say (Q1,Q2):0.23 (Q1,Z1):0.55 (Q1,Z2):0.45 (Q2,Z1):0.4 (Q2,Z2):0.5

Re: [R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
Sorry, I think I figured it out--I needed to generate a vector of 1 random numbers in runif instead of just one--the code (which performs as expected) follows: x3<-rmvbin(1,margprob=0.2) sens1<-0.7 spec1<-0.8 sens2<-0.8 spec2<-0.7 funcsensspec<-function(x,sens,spec) { result<-ifelse(x=

Re: [R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
This is obviously an oversimplified way of simulating different test characteristics, but for the specific purpose I need it will serve. The lesion is not in my understanding of clinical epidemiology. I am more interested in understanding how the code is working in this case. Thanks. Jaso

Re: [R] R License

2014-05-24 Thread Juan Ulises Bohorquez Carvajal
Thanks for your information Jb Mensaje original De: John Kane Fecha:24/05/2014 10:33 AM (GMT-05:00) A: "Timothy W. Cook" ,Juan Ulises Bohorquez Carvajal CC: "r-help@R-project.org" Asunto: Re: [R] R License Aha, someone knowledeable has shown up. Thanks Tim John Kane Kingston

Re: [R] R License

2014-05-24 Thread Juan Ulises Bohorquez Carvajal
Thanks, could you send to me an official certificate in pdf with this information? Or a certified email to support the information license? Best regards, Jb Mensaje original De: John Kane Fecha:24/05/2014 10:04 AM (GMT-05:00) A: Juan Ulises Bohorquez Carvajal ,"r-help@R-pro

Re: [R] R License

2014-05-24 Thread Juan Ulises Bohorquez Carvajal
Thanks Mensaje original De: Jeff Newmiller Fecha:24/05/2014 10:37 AM (GMT-05:00) A: Juan Ulises Bohorquez Carvajal ,"r-help@R-project.org" Asunto: Re: [R] R License This is not an appropriate forum to be obtaining legal advice in. That said, the licenses [1] for R do not discus

Re: [R] How do I move the axis labels precisely

2014-05-24 Thread Hurr
OK, so nobody knows how to explain my code or do it better. My bigger problem is to know how to move the labels a small distance away from the tick marks so I can see the decimal points. Can anyone help me? Hurr -- View this message in context: http://r.789695.n4.nabble.com/How-do-I-move-the

Re: [R] How to illustrate data of a csv file as table (xtable?)

2014-05-24 Thread Jeff Newmiller
That is one way. Pandoc is another way, though it requires fiddling in Word to format the tables right. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Liv

Re: [R] How to illustrate data of a csv file as table (xtable?)

2014-05-24 Thread Verena Weinbir
hey guys, thank you very much for your help! Sorry for the confusion! I write my thesis in word (So it would be "word sheet" - which is obvisously not a word at all :-D sorry again), but for generating tables I use xtable () with latex output. The data for the table is stored in an excel sheet.

Re: [R] Balloon plot scaling problem

2014-05-24 Thread David Winsemius
On May 23, 2014, at 8:05 PM, Jim Lemon wrote: > On Fri, 23 May 2014 12:19:11 PM Ruddy Kathy wrote: >> Hi Guys, >> >> I have been trying to create a 'balloon plot' using R, which is where the >> points in a plot are scaled such that the size of the point (area) >> represents the value. >> ... >>

Re: [R] How to illustrate data of a csv file as table (xtable?)

2014-05-24 Thread David Winsemius
On May 23, 2014, at 4:49 PM, Duncan Murdoch wrote: > On 23/05/2014, 6:31 PM, Verena Weinbir wrote: >> Hello! >> >> I'd like to illustrate the data of an csv file as a nice table and copy it >> into my word-sheet. Currently, I am trying this with the xtable () function >> (latex output). > > I'm

Re: [R] Error message when fitting a binomial response model using glm

2014-05-24 Thread David Winsemius
On May 23, 2014, at 2:04 PM, Adams, Jean wrote: > Roland, > > I did a google search for > R Error: inner loop 2; cannot correct step size > and found an old R-help message that suggests the glm() algorithm cannot > converge. > https://stat.ethz.ch/pipermail/r-help/2009-December/223142.ht

Re: [R] R License

2014-05-24 Thread Jeff Newmiller
This is not an appropriate forum to be obtaining legal advice in. That said, the licenses [1] for R do not discuss the size of your company. They do discuss your rights and responsibilities should you make changes to R. People who want to modify or incorporate R in their own software tend to hav

Re: [R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread David Winsemius
On May 24, 2014, at 6:58 AM, Jason Stout, M.D. wrote: > Hi R-users, > > I'm trying to simulate the outcome of several diagnostic tests with binary > outcomes (positive/negative) and different performance characteristics. What > I would like to generate is a dataframe with the first column rep

Re: [R] Time Series

2014-05-24 Thread John Kane
No raw data. Sent is as text (csv) or use dput() to include it in the email. John Kane Kingston ON Canada > -Original Message- > From: schmtz...@yahoo.com > Sent: Fri, 23 May 2014 08:02:31 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Time Series > > Dear Sir: > I am trying to

Re: [R] R License

2014-05-24 Thread John Kane
Aha, someone knowledeable has shown up. Thanks Tim John Kane Kingston ON Canada > -Original Message- > From: t...@mlhim.org > Sent: Sat, 24 May 2014 12:23:10 -0300 > To: juan.bohorq...@ecopetrol.com.co > Subject: Re: [R] R License > > On Sat, May 24, 2014 at 9:57 AM, Juan Ulises Bohorqu

Re: [R] how to add a table under a plot?

2014-05-24 Thread John Kane
I'd go with the addtable2plot but you can also do bascially the same thing in ggplot2 (again you have to install the ggplot2 package. Here is an example of the ggplot2 approach http://stackoverflow.com/questions/12318120/adding-table-within-the-plotting-region-of-a-ggplot-in-r John Kane Kingst

Re: [R] How to illustrate data of a csv file as table (xtable?)

2014-05-24 Thread John Kane
Verena Do you mean word-sheet or is this a typo for 'work-sheet'? John Kane Kingston ON Canada > -Original Message- > From: vwein...@gmail.com > Sent: Sat, 24 May 2014 00:31:44 +0200 > To: r-help@r-project.org > Subject: [R] How to illustrate data of a csv file as table (xtable?) > > He

Re: [R] R License

2014-05-24 Thread Timothy W. Cook
On Sat, May 24, 2014 at 9:57 AM, Juan Ulises Bohorquez Carvajal < juan.bohorq...@ecopetrol.com.co> wrote: > Hello, I work in the area of ​​Geomatics in Ecopetrol, Ecopetrol is an > Oil & GAS company with 10,000 employees. The licensing of R allows me to > use it in production at my company o

Re: [R] R License

2014-05-24 Thread John Kane
It is an Open Source program and can be used by anyone. John Kane Kingston ON Canada > -Original Message- > From: juan.bohorq...@ecopetrol.com.co > Sent: Sat, 24 May 2014 07:57:58 -0500 > To: r-help@r-project.org > Subject: [R] R License > > Hello, I work in the area of b??b??Geomatics

[R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
Hi R-users, I'm trying to simulate the outcome of several diagnostic tests with binary outcomes (positive/negative) and different performance characteristics. What I would like to generate is a dataframe with the first column representing the result of a "perfect" test, and different columns t

[R] R License

2014-05-24 Thread Juan Ulises Bohorquez Carvajal
Hello, I work in the area of ​​Geomatics in Ecopetrol, Ecopetrol is an Oil & GAS company with 10,000 employees. The licensing of R allows me to use it in production at my company or academic use only? Sincerely, JB. Este mensaje y sus anexos está dirigid

Re: [R] How do I move the axis labels precisely

2014-05-24 Thread Hurr
In the R Documentation for top.line in staxlab in plotrix: top.line is: Distance from the axis to place the first line of text. Notice that in the original runnable code in this thread for the two axes at the bottom of the graph: prdAxDistDown=0; frqAxDistDown=3.5; axis(1,tick=TRUE,line=prdAxDist