[R] anyone know how to plot histograma and line in the same graph

2008-02-15 Thread Xin
Dear: I have two series data, which are: p1-obs p1-exp 13 13 20 23.296 22 18.139 19 14.972 10 12.576 16 10.658 8 9.0794 4 7.7625 3 6.6536 5 5.7141 7 4.9146 4 4.2321 0 3.648 4 3.1471 4

Re: [R] anyone know how to plot histograma and line in the same graph

2008-02-15 Thread Henrique Dallazuanna
Try this: hist(x[,1], ylim=c(0,max(x[,2]))) lines(x[,2], col="blue", lty=2) On 15/02/2008, Xin <[EMAIL PROTECTED]> wrote: > Dear: > >I have two series data, which are: > p1-obs p1-exp > 13 13 > 20 23.296 > 22 18.139 > 19 14.972 > 10 12.576 > 16 10.65