Re: [R] labcurve - use of putKey function

2013-08-28 Thread Igor Ribeiro
Thank you so much, Pascal. Works perfectly! :) On Tue, Aug 27, 2013 at 8:14 PM, Pascal Oettli kri...@ymail.com wrote: Hello, The following works for me: library(Hmisc) timeseries-c(1950,2000,2050,2100) dataseries-seq(1:4) dataseries1-c(1,2,3,4) dataseries2-c(1.5,2.5,3.5,4)

Re: [R] labcurve - use of putKey function

2013-08-27 Thread Igor Ribeiro
Hi Pascal, Still... there is something wrong. I changed the two lines as you suggested, and now I'm using the keys parameter. But the output is not as expected. That's why I was controlling the points using points function, because that works well. Let me try to show you with the code: # Example

Re: [R] labcurve - use of putKey function

2013-08-27 Thread Pascal Oettli
Hello, The following works for me: library(Hmisc) timeseries-c(1950,2000,2050,2100) dataseries-seq(1:4) dataseries1-c(1,2,3,4) dataseries2-c(1.5,2.5,3.5,4) plot(timeseries,dataseries,type=n) lines(timeseries,dataseries1,col=red,type=l) lines(timeseries,dataseries2,col=blue,type=l) curves-list()

Re: [R] labcurve - use of putKey function

2013-08-26 Thread Pascal Oettli
Hello, Please keep the r-list included when you reply. Why do you want to add points to lines only in the legend? If so, the legend would be incorrect. Regards, Pascal 2013/8/26 Igor Ribeiro igor...@gmail.com Hi Pascal, Thank you very much - your solution works partially - it will include

Re: [R] labcurve - use of putKey function

2013-08-26 Thread Igor Ribeiro
Because I'm already controlling points using points function. So I don't want labcurve to change anything on the lines... Just draw the legend the way I need. On Aug 26, 2013 8:35 PM, Pascal Oettli kri...@ymail.com wrote: Hello, Please keep the r-list included when you reply. Why do you want

Re: [R] labcurve - use of putKey function

2013-08-26 Thread Pascal Oettli
Hello, That is why I changed 2 lines in the code. Because points are misplaced if you keep points with the lines. Regards, Pascal 2013/8/27 Igor Ribeiro igor...@gmail.com Because I'm already controlling points using points function. So I don't want labcurve to change anything on the

Re: [R] labcurve - use of putKey function

2013-08-23 Thread Pascal Oettli
Hello, In labcurve, use keys=c(19,5). It is said in examples provided in the help page. You should also modify the following lines: lines(timeseries,dataseries1,col=red,type=l) lines(timeseries,dataseries2,col=blue,type=l) Regards, Pascal 2013/8/23 Igor Ribeiro igor...@gmail.com Dear all,

[R] labcurve - use of putKey function

2013-08-22 Thread Igor Ribeiro
Dear all, I have a plot with two lines and I'm using labcurbe (package Hmisc) to show the legend. Everything works well, except that the line displayed in legend box should have same style (plotting character) as the line in the plot. This is achieved by pch parameter and looks like that it's only