[R] Lines instead of points in a scatterplot

2014-09-12 Thread Angel Rodriguez
Dear subscribers, I have the following dataframe: aggr child65$decedad logit 1 [65,67) 0. 10 67 0. 2 [68,70) -0.06669137 3 [70,72) -0.71294981 4 [72,74) -0.59783700 5 [74,77) -1.08334482 6 [77,79)

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Vivek Das
HI, Try to change with plot(aggr, type=l) see what happens? This should work -- Vivek Das On Fri, Sep 12, 2014 at 10:32 AM, Angel Rodriguez angel.rodrig...@matiainstituto.net wrote: Dear subscribers, I have the following

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Angel Rodriguez
Thank you, Vivek, but it hasn�t worked. I've tryed type=o and type=h to no avail. Angel -Mensaje original- De: Vivek Das [mailto:vd4mm...@gmail.com] Enviado el: vie 12/09/2014 10:50 Para: Angel Rodriguez CC: R help Asunto: Re: [R] Lines instead of points in a scatterplot HI, Try

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread peter dalgaard
The root cause is that column 1 is a factor. So what you get is really a set of parallel boxplots each based on one observation. plot.default() is one way out, but you may need to generate the x-axis labels yourself. I.e., x - factor(LETTERS[1:10]) y - rnorm(10) plot(x,y) plot.default(x,y)

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Angel Rodriguez
[mailto:pda...@gmail.com] Enviado el: vie 12/09/2014 11:07 Para: Angel Rodriguez CC: R-help@r-project.org Asunto: Re: [R] Lines instead of points in a scatterplot The root cause is that column 1 is a factor. So what you get is really a set of parallel boxplots each based on one observation

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread PIKAL Petr
Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Vivek Das Sent: Friday, September 12, 2014 10:50 AM To: Angel Rodriguez Cc: R help Subject: Re: [R] Lines instead of points in a scatterplot HI, Try to change

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Angel Rodriguez
) [70,72) ... There is no need to change this column if one uses plot.default Angel -Mensaje original- De: PIKAL Petr [mailto:petr.pi...@precheza.cz] Enviado el: vie 12/09/2014 11:40 Para: Vivek Das; Angel Rodriguez CC: R help Asunto: RE: [R] Lines instead of points in a scatterplot Hi