Hi there, I use plot(type="o") to draw the line. And I need put some legend to this line. But how can I let the legend to display the line type in the graph generated from type="o"? I can only find the lty in the legend. But I tried several times and still failed. Also, if I use abline(h=0.08) to draw a horizontal line and I also want to show 0.08 in the y-axis, how can I do it? Many thanks, Yi -- Yi Du Ph. D student in Economics University of Missouri Department of Economics 118 Professional Building Columbia MO 65211 1-573-239-6467 [[alternative HTML version deleted]]
On 26.02.2010 05:22, Yi Du wrote:> Hi there, > > > I use plot(type="o") to draw the line. And I need put some legend to this > line. But how can I let the legend to display the line type in the graph > generated from type="o"? I can only find the lty in the legend. But I tried > several times and still failed.Use both pch=1, lty=1 as arguments.> Also, if I use abline(h=0.08) to draw a horizontal line and I also want to > show 0.08 in the y-axis, how can I do it?See ?mtext Uwe Ligges> > Many thanks, > > > Yi >