Skip to content
Prev 242311 / 398500 Next

An empty grey diagram

Hi Josh,

plot.new()
the gray background changes to white colour.

If following my steps:-
plot(matrics$resid)

plots a new graph

B.R.
Stephen



----- Original Message ----
From: Joshua Wiley <jwiley.psych at gmail.com>
To: Stephen Liu <satimis at yahoo.com>
Cc: r-help at r-project.org
Sent: Sat, November 20, 2010 12:57:41 PM
Subject: Re: [R] An 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 email).  If a graphic device does not start when you call plot()
then your error is earlier and you may need to explicitly open one (as
David suggested).
On Fri, Nov 19, 2010 at 8:38 PM, Stephen Liu <satimis at yahoo.com> wrote: