Skip to content

problem with abline

4 messages · Gerard Smits, David Winsemius, Dennis Murphy

#
On Oct 6, 2010, at 5:56 PM, Gerard Smits wrote:

            
xyplot is Lattice
abline is base graphics
Nope. Read the Posting Guide about attachments to the list. Nice try,  
though.
Instead consider:
?panel.lmline

Perhaps (untested in absence of data):

plot.new()
xyplot(jitter(b.lvef)~jitter(log.fgf), panel = function(x, y) {
           panel.xyplot(x, y)
            panel.lmline(x,y)
        },
       main="Scatter Plot of Baseline Ejection Fraction\nby Log10  
FGF-23",
       ylim=c(10,90),
       ylab="Ejection Fraction", xlab="Log10 FGF-23")
David Winsemius, MD
West Hartford, CT
#
Hi David,

Just changed to the standard plot from xyplot and it worked fine.  I'll check out panel.lmline.

Thanks for your help.

Gerard
On Oct 6, 2010, at 3:27 PM, David Winsemius wrote: