Re: [R] An empty grey diagram

2010-11-22 Thread Martin Maechler
e two simple lines do not work correctly, then your R environment is "broken" in some way, and maybe first doing rm(list = ls()) may help. Martin Maechler, ETH Zurich and R Core Team > B.R. > Stephen L > ----- Original Message > From: Joshua Wiley

Re: [R] An empty grey diagram

2010-11-20 Thread Stephen Liu
shua Wiley To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, November 20, 2010 1:39:45 PM Subject: Re: [R] An empty grey diagram On Fri, Nov 19, 2010 at 9:35 PM, Stephen Liu wrote: > Hi David, > > >> What happens when you follow the directions... i.e. type: >> plot.new()

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
Sent: Sat, November 20, 2010 1:39:45 PM Subject: Re: [R] An empty grey diagram On Fri, Nov 19, 2010 at 9:35 PM, Stephen Liu wrote: > Hi David, > > >> What happens when you follow the directions... i.e. type: >> plot.new()#??? > > abline(lm(len ~ dose, data = ToothGr

Re: [R] An empty grey diagram

2010-11-19 Thread Joshua Wiley
On Fri, Nov 19, 2010 at 9:35 PM, Stephen Liu wrote: > Hi David, > > >> What happens when you follow the directions... i.e. type: >> plot.new()    #??? > > abline(lm(len ~ dose, data = ToothGrowth)) > plot.new() > > The grey background changes to white, still an empty graph You cannot just use abl

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
empty grey diagram It looks like all the packages you should need are loaded. Does the call to plot() create a scatter plot correctly? abline() adds a line to the current plot so that device still needs to be open when you call abline() (which it should have been if you ran the code from my first

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
h B.R. Stephen L - Original Message From: David Winsemius To: Stephen Liu Cc: Joshua Wiley ; r-help@r-project.org Sent: Sat, November 20, 2010 1:08:21 PM Subject: Re: [R] An empty grey diagram On Nov 19, 2010, at 11:14 PM, Stephen Liu wrote: > Hi Josh, > > >> with(T

Re: [R] An empty grey diagram

2010-11-19 Thread David Winsemius
grey background diagram displayed. B.R. Stephen L - Original Message From: Joshua Wiley To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, November 20, 2010 10:50:42 AM Subject: Re: [R] An empty grey diagram Hi Stephen, Please try: with(ToothGrowth, plot(dose, len)) abline(lm(len

Re: [R] An empty grey diagram

2010-11-19 Thread Joshua Wiley
It looks like all the packages you should need are loaded. Does the call to plot() create a scatter plot correctly? abline() adds a line to the current plot so that device still needs to be open when you call abline() (which it should have been if you ran the code from my first email). If a grap

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
r-help@r-project.org Sent: Sat, November 20, 2010 10:50:42 AM Subject: Re: [R] An empty grey diagram Hi Stephen, Please try: with(ToothGrowth, plot(dose, len)) abline(lm(len ~ dose, data = ToothGrowth)) Cheers, Josh On Fri, Nov 19, 2010 at 6:44 PM, Stephen Liu wrote: > Hi folks, > >

Re: [R] An empty grey diagram

2010-11-19 Thread Stephen Liu
    cairo     TRUE    FALSE TRUE TRUE TRUE TRUE    FALSE B.R. Stephen L   - Original Message From: Joshua Wiley To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, November 20, 2010 12:29:07 PM Subject: Re: [R] An empty grey diagram Hi Stephen, In a session wher

Re: [R] An empty grey diagram

2010-11-19 Thread David Winsemius
round diagram displayed. B.R. Stephen L - Original Message From: Joshua Wiley To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, November 20, 2010 10:50:42 AM Subject: Re: [R] An empty grey diagram Hi Stephen, Please try: with(ToothGrowth, plot(dose, len)) abline(lm(len ~ dose,

Re: [R] An empty grey diagram

2010-11-19 Thread Joshua Wiley
Stephen Liu > Cc: r-help@r-project.org > Sent: Sat, November 20, 2010 10:50:42 AM > Subject: Re: [R] An empty grey diagram > > Hi Stephen, > > Please try: > > with(ToothGrowth, plot(dose, len)) > abline(lm(len ~ dose, data = ToothGrowth)) > > > Cheers, > >

Re: [R] An empty grey diagram

2010-11-19 Thread Joshua Wiley
Hi Stephen, Please try: with(ToothGrowth, plot(dose, len)) abline(lm(len ~ dose, data = ToothGrowth)) Cheers, Josh On Fri, Nov 19, 2010 at 6:44 PM, Stephen Liu wrote: > Hi folks, > > Win7 64bit > R 1.12.0 > > I run following command on R:- > >> ToothGrowth >> attach(ToothGrowth) >> plot(dose

[R] An empty grey diagram

2010-11-19 Thread Stephen Liu
Hi folks, Win7 64bit R 1.12.0 I run following command on R:- > ToothGrowth > attach(ToothGrowth) > plot(dose,len) > matrics=lm(len~dose) > abline(metrics) Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : plot.new has not been called yet Only a grey diagram is displayed wi