Results 1 to 8 of 8

Thread: problem with abline and regression plot

Threaded View

  1. #1
    Points: 2,561, Level: 30
    Level completed: 74%, Points required for next Level: 39

    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problem with abline and regression plot

    I use 2.9.0
    when using the following commands with the attached lbw.txt

    lbw<-read.table("lbw.txt")
    reg<-(lbw$PDBB~lbw$PDMR)
    plot(lbw$PDMR,lbw$PDBB)
    abline(reg)

    I can't get the plot with the regression line

    Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
    plot.new has not been called yet.
    And a blank plot appears. ...

    What is strange is that the four following lines submitted together give a regression line but I get the same error if I submit these lines step by step

    Is there a solution?

    Thanks

    mboutsen
    statistician
    brussels university
    Attached Files

Similar Threads

  1. plot lines through regression model
    By Brendaa in forum R
    Replies: 1
    Last Post: 06-03-2010, 04:31 PM
  2. abline plots in the wrong place
    By SmoothJohn in forum R
    Replies: 7
    Last Post: 04-25-2010, 09:10 AM
  3. line plot problem
    By mcquilla in forum SAS
    Replies: 0
    Last Post: 01-10-2010, 07:22 AM
  4. Problem with Splus plot function
    By math_daddy in forum R
    Replies: 5
    Last Post: 08-20-2009, 03:06 PM
  5. problem graphing a stat plot....
    By Parsistamon in forum Statistics
    Replies: 0
    Last Post: 09-16-2007, 09:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats