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)
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
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()
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
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
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
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,
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
8 matches
Mail list logo