Re: [R] Fwd: Segment out of the Graph

2011-08-26 Thread Claudio Zanettini
15 16 17 18 19 20 21 22 23 >> 24 >> 25 >> [26] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 41 >> >> breakpT >> [1] 10671.7 >> >> breakpR >> [1] 41 >> >> reinfT >>> >> activeT >> 5 46.6 >> 12 711.4 &

[R] Fwd: Segment out of the Graph

2011-08-25 Thread Claudio Zanettini
-- Forwarded message -- From: Claudio Zanettini Date: 2011/8/25 Subject: Re: [R] Segment out of the Graph To: David Winsemius Thanks David and Michael, In attachment there is one of the graph. the line below the graph is not related to the y label. I draw it at y= -10 just

Re: [R] Segment out of the Graph

2011-08-25 Thread Claudio Zanettini
sing the min and max y you wish: >> consider this: >> >> x = -5:5; y = x^2; z = rep(-5,11); >> layout(1:2) >> plot(x,y,type="b"); lines(x,z,col=2) >> plot(x,y,ylim = c(-8,max(y)+3),type="b"); lines(x,z,col=2) >> >> For y

Re: [R] Segment out of the Graph

2011-08-25 Thread Claudio Zanettini
Yes I tried but if I set the lim to 0 then it will not displayed the line that is at -10, right? 2011/8/25 R. Michael Weylandt > Look at ylim, as an optional argument to plot. > > Michael > > On Thu, Aug 25, 2011 at 1:07 PM, Claudio Zanettini < > claudio.zanett...@gmail.c

[R] Segment out of the Graph

2011-08-25 Thread Claudio Zanettini
Hello everyone, I have a graph and a segment parallel to the x axis at y=-10, x=0, and bars on it. Now the question is, Is there a way to leave the segment there but let the graph axis start from the origin? In this way the segment will be out of the graph Thanks [[alternative HTML ver

Re: [R] Append a value to a vector

2011-08-25 Thread Claudio Zanettini
Oh thanks, yes now I understand. I did not realized that I did not save it. :) 2011/8/24 Jean V Adams > > Claudio Zanettini wrote on 08/24/2011 > 04:33:50 PM: > > > > > Thank you, this work fine, > > and is not contorted like mine:) > > In this case lastV=

Re: [R] Append a value to a vector

2011-08-24 Thread Claudio Zanettini
; > [25] "8803.11" "9186.11" "9453.11" "10132.11" "10669.21" "10720.61" > > [31] "10755.13" "11326.11" "11440.13" "11486.11" "11508.11" "11711.11" > > [37] "1

[R] Append a value to a vector

2011-08-24 Thread Claudio Zanettini
This should be easy but it does not work I have 3 vectors*(activeT,inactT, activeR)*, the idea is that if the last value in inactT is higher than the last in activeT this value has to be append in active T and the last value in another vector call activeR has to be repeated. (at the bottom you can

Re: [R] Sequence

2011-08-22 Thread Claudio Zanettini
ge > > > On Mon, Aug 22, 2011 at 8:36 PM, Claudio Zanettini <> wrote: > >> Hello everyone, >> I would like to generate a sequence >> such as, starting from 5, every value is >> 40% of the value before+ all the preceeding values. >> es: >> t

Re: [R] Sequence

2011-08-22 Thread Claudio Zanettini
Thanks guys, I did not know the fun cumsum I will work on that. HVZ 2011/8/22 David Winsemius > > On Aug 22, 2011, at 8:36 PM, Claudio Zanettini wrote: > > Hello everyone, >> I would like to generate a sequence >> such as, starting from 5, every value is >> 40

[R] Sequence

2011-08-22 Thread Claudio Zanettini
Hello everyone, I would like to generate a sequence such as, starting from 5, every value is 40% of the value before+ all the preceeding values. es: this is the seq of all the value+40% of the preceding value: 5 71014192738 5374 103