[R] locator not-interactive

2011-11-13 Thread Heverkuhn Heverkuhn
Hello everyone, I have these 2 vectors in a type=s plot ( reported below) I would like to check the value of y at z=seq(0,1440, by=60) I think that I can do it calculating a vector that report the position of the value of y = z for which the difference to z is minimal. But I also guess

[R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread Heverkuhn Heverkuhn
Hello everyone, if I have: x=1:10 y=1:10 plot(x,y) and I plot a rectangle rect(4,0,6,11, col=5) it covers the points of the graph. Is there a way to draw the rectangle under the points? I was thinking the a solution could be draw an empty plot then draw the rectangle and after the points, but it

Re: [R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread Heverkuhn Heverkuhn
Thank you, you are right my execution was completly wrong. it was plot(0,type=n); rect(4,0,6,11,col=5); plot(x,y). Thanks for your help :) H. On Sat, Oct 8, 2011 at 12:43 PM, Robert Baer rb...@atsu.edu wrote: This is what you tried? What doesn't work? x=1:10 y=1:10 plot(x,y, type='n')

[R] RStudio and findFn{sos}

2011-10-07 Thread Heverkuhn Heverkuhn
Hello everyone, I have this problem, when I launch findFn from RStudio ( but not from R console) the table of results does not pop in the browser and I got a warning. findFn(test) found 9914 matches; retrieving 20 pages, 400 matches. 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Warning

Re: [R] break.axis all range of data

2011-10-06 Thread Heverkuhn Heverkuhn
Thank you Jim It seems exactly what I was looking for :) Claudio On Thu, Oct 6, 2011 at 5:11 AM, Jim Lemon j...@bitwrit.com.au wrote: On 10/06/2011 12:31 AM, Heverkuhn Heverkuhn wrote: ..all the point from 8 to 13. On Wed, Oct 5, 2011 at 8:28 AM, Heverkuhn Heverkuhnheverk...@gmail.com

[R] Fwd: break.axis all range of data

2011-10-06 Thread Heverkuhn Heverkuhn
But in this way for moving also the point have to add 2 at all the x point after 8. axis(1,at=c(1:8,12:39),labels=1:36) plot(1:36,1:36,xaxt=n) I increased the gap, and if I don increase the x for the points at X 9, 10 they will appear in the gap. HC On Thu, Oct 6, 2011 at 8:20 AM, Heverkuhn

Re: [R] break.axis all range of data

2011-10-05 Thread Heverkuhn Heverkuhn
, 2011 5:14 AM, Jim Lemon j...@bitwrit.com.au wrote: On 10/05/2011 09:52 AM, Heverkuhn Heverkuhn wrote: Hello R users, I have a plot type=b with x axis at=(1:36), I would like to increase the distance between x tick-marks 8 and 9, and not connect the points x=8 and x=9. I can do the second

Re: [R] break.axis all range of data

2011-10-05 Thread Heverkuhn Heverkuhn
..all the point from 8 to 13. On Wed, Oct 5, 2011 at 8:28 AM, Heverkuhn Heverkuhn heverk...@gmail.comwrote: The problem with that function is that it does not really separate the 2parts of the graph but it inserts , when style is gap, a blank strip that cover axis and points. So for example

[R] break.axis all range of data

2011-10-04 Thread Heverkuhn Heverkuhn
Hello R users, I have a plot type=b with x axis at=(1:36), I would like to increase the distance between x tick-marks 8 and 9, and not connect the points x=8 and x=9. I can do the second thing, setting type=p and then drawing the lines, but I don't know how to do the first. Plus, I was

[R] Interaction plot type=o

2011-09-29 Thread Heverkuhn Heverkuhn
Hello, I was wondering if there is any equivalent of interaction.plot that allow you to set type=o I tried to use interaction.plot and I have a gap between the symbols of the points and the line. Thank you in advance [[alternative HTML version deleted]]

Re: [R] Interaction plot type=o

2011-09-29 Thread Heverkuhn Heverkuhn
it to take the argument? Thanks Claudio On Thu, Sep 29, 2011 at 9:00 PM, David Winsemius dwinsem...@comcast.netwrote: On Sep 29, 2011, at 7:22 PM, Heverkuhn Heverkuhn wrote: Hello, I was wondering if there is any equivalent of interaction.plot that allow you to set type=o I tried to use

Re: [R] Correlation of variables with repeated measures.

2011-09-23 Thread Heverkuhn Heverkuhn
I guess that I have just to consider the means of each subject, as indicated here. http://www-users.york.ac.uk/~mb55/intro/corrsim.htm Thanks On Thu, Sep 22, 2011 at 9:16 PM, Heverkuhn Heverkuhn heverk...@gmail.comwrote: Hello I have a dataframe that looks like this: Date Min

[R] Correlation of variables with repeated measures.

2011-09-22 Thread Heverkuhn Heverkuhn
Hello I have a dataframe that looks like this: Date Min Subj VAR1 VAR2 VAR3 1 8/30/2011 5min1 34.41042 126.08490 55.3548387 2 8/30/2011 10min1 34.53030 133.81343 61.600 3 8/30/2011 15min1 34.66297 118.38193 11.800 4 8/30/2011 20min1 34.82770

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

2011-08-26 Thread heverkuhn
No attachment. No code. I apology for that. I provided below the code and the vectors, Whatever that mean. Perhaps it means below? Yes, below, I mean out of the axis... And I think, that as you suggested, the xpd is what I was looking for. I need something like this

[R] Append a value to a vector

2011-08-24 Thread heverkuhn
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