Re: [R] setting the values of a secondary "y" axis

2017-05-06 Thread Antonio Silva
Many thanks Bill, that's it! Best wishes Antonio 2017-05-06 20:50 GMT-03:00 William Dunlap : > Does the following do what you want? > > > plot(log2(1:40), sin(1:40)) > > yTickPositions <- axTicks(2) > > axis(side=4, at=yTickPositions, lab=format(yTickPositions*3.5)) > > >

Re: [R] setting the values of a secondary "y" axis

2017-05-06 Thread William Dunlap via R-help
Does the following do what you want? > plot(log2(1:40), sin(1:40)) > yTickPositions <- axTicks(2) > axis(side=4, at=yTickPositions, lab=format(yTickPositions*3.5)) Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, May 6, 2017 at 2:50 PM, Antonio Silva wrote: > Hello

[R] setting the values of a secondary "y" axis

2017-05-06 Thread Antonio Silva
Hello I want to make a plot with two "y" axes. The labels at axis 4 should be the values from axis 2 multiplied by a scale factor (as 3.5). In the example below I draw axis 4 exactly as axis 2. But I could not find a way to multiply its values by 3.5 (e.g.). plot(rnorm(100,30,5)) axis(4) # I'd

Re: [ESS] Ever consider changing indentation on #?

2017-05-06 Thread Stephen Eglen
since we are throwing ideas out there... perhaps what the R universe could do with is something similar to "gofmt" for the go language. All Go code looks the same, because there is a formatting tool, and everyone uses it. How about something similar for R...?!? Stephen

Re: [R] nested for loop with data table

2017-05-06 Thread Ek Esawi
Thank you Jeff. Your idea, as i mentioned on my previous posting, did indeed work. I read somewhere that both data table dplyr do great many things and i plan to learn both as much as i can. Suggestions on this list either get you the answer you are looking for or give you lead to an answer.

Re: [ESS] Ever consider changing indentation on #?

2017-05-06 Thread Tyler Smith
Richard M. Heiberger writes: > When people send me code with consistent use of #, I can't read it > because all the comments fly off to the right and are nowhere near > what they are talking about. Does ESS do this automatically, or do you need to explicitly ask it to reindent the code for this

Re: [R] create a correct list from Document Term Matrix

2017-05-06 Thread David Winsemius
> On May 6, 2017, at 8:14 AM, David Winsemius wrote: > >> >> On May 6, 2017, at 7:47 AM, Elahe chalabi via R-help >> wrote: >> >> Hi all, >> >> I have a text classification task which is classification of a Control group >> and Alzheimer group

Re: [R] loading edited functions already in saved workspace automatically

2017-05-06 Thread Michael Friendly
On 5/5/2017 10:23 AM, Ralf Goertz wrote: Am Fri, 05 May 2017 07:14:36 -0700 schrieb Jeff Newmiller : R normally prompts you to save .RData, but it just automatically saves .Rhistory... the two are unrelated. Not here. If I say "n" to the prompted question "Save

Re: [R] create a correct list from Document Term Matrix

2017-05-06 Thread David Winsemius
> On May 6, 2017, at 7:47 AM, Elahe chalabi via R-help > wrote: > > Hi all, > > I have a text classification task which is classification of a Control group > and Alzheimer group texts. I have generated DocumentTermMatrix for both > groups and then created a list with

[R] create a correct list from Document Term Matrix

2017-05-06 Thread Elahe chalabi via R-help
Hi all, I have a text classification task which is classification of a Control group and Alzheimer group texts. I have generated DocumentTermMatrix for both groups and then created a list with one extra element showing the group name if it's Alzheimer or control group, for example for the

Re: [ESS] Ever consider changing indentation on #?

2017-05-06 Thread Kasper Daniel Hansen
I agree the default is worthwhile changing, especially Paul's nice suggestion of letting # be flush left ## indentation level which would not affect my memory typing (since I never use `#`) and solve irritating indentation issues when I work with other peoples code. Best, Kasper On Sat, May

Re: [R] Problems installing IsoriX package in R

2017-05-06 Thread Vikash Kumar
Install the dependent packages also. Try - install.packages("proxy") #then install.packages("IsoriX") Regards, Vikash Virus-free. www.avast.com

Re: [ESS] Ever consider changing indentation on #?

2017-05-06 Thread Vitalie Spinu
I would add here that other modes in emacs except lisp don't usually respect this convention. Vitalie >> On Fri, May 05 2017 23:52, Steven McKinney wrote: > As an old lisp programmer I use # and ## and ### in all my code. > ### > ### for code block and

Re: [R] 3D equal-spaced closed mesh

2017-05-06 Thread Michael Sumner
Rvcg another option to explore with its ball-pivoting surface reconstruction. Mike On Fri, May 5, 2017, 08:34 Bert Gunter wrote: > The r-sig-geo list and corresponding cran task view *might* be a better > place to post and/look. > > Bert > > > On May 4, 2017 12:51 PM,

Re: [R] Perfect prediction of AR1 series using package dlm, posted on stack exchange

2017-05-06 Thread Ashim Kapoor
Dear Peter, Many thanks, Ashim. On Thu, May 4, 2017 at 4:54 PM, peter dalgaard wrote: > I am not an expert on dlm, but it seems to me that you are getting perfect > _filtering_ not _prediction_. If you cast an AR model as a state space > model, there is no measurement error