Dear Ashim,

The grid() function is in the base R graphics package and should be attached to 
the search path (along with stats and some other standard packages).  Close 
your R session and try again.
 If the problem persists, make sure that you don't have a saved workspace 
that's being loaded every time R starts. If so, you'll see a message to this 
effect when R start up, and you should delete the file, named .RData, with the 
saved workspace. To find out where this file resides, type the command getwd() 
at the R > prompt. Then close R and try again.

If you still have this problem, reinstall R and the Rcmdr package.

I'm afraid that I'm unavailable for the rest of the day and so if you have a 
follow-up question, I won't be able to answer it in a timely manner.

I hope this helps,
 John

-----------------------------
John Fox, Professor
McMaster University
Hamilton, Ontario
Canada L8S 4M4
Web: socserv.mcmaster.ca/jfox




> -----Original Message-----
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ashim
> Kapoor
> Sent: June 4, 2016 5:33 AM
> To: peter dalgaard <pda...@gmail.com>
> Cc: r-help@r-project.org
> Subject: Re: [R] Error from Rcmdr when trying to make a density plot
> 
> Dear Peter,
> 
> Many thanks.
> 
> Now when i do :-
> 
> library(stats)
> data(Anscombe, package="car")
> densityPlot( ~ income, data=Anscombe, bw="SJ", adjust=1, kernel="gaussian")
> 
> 
> I get the output of rug on the x axis but not kernel density graph.
> Also I get :-
> [1] NOTE: R Commander Version 2.2-0: Sat Jun 4 14:58:57 2016 [2] NOTE:
> Rcmdr Version 2.2-0
> [3] NOTE: The dataset Anscombe has 51 rows and 4 columns.
> [4] ERROR:
> could not find function "grid"
> 
> Best Regards,
> Ashim
> 
> On Sat, Jun 4, 2016 at 2:50 PM, peter dalgaard <pda...@gmail.com> wrote:
> 
> >
> > > On 04 Jun 2016, at 09:09 , Ashim Kapoor <ashimkap...@gmail.com>
> wrote:
> > >
> > [...]
> >
> > > [4] ERROR:
> > > could not find function "model.frame"
> > >
> > >
> > > My session details are :-
> > >
> > >> sessionInfo()
> > > [...]
> > > attached base packages:
> > > [1] splines   utils     grDevices base
> >
> > Looks like you somehow managed to detach (or not attach) the stats
> > package. Don't...
> >
> > -pd
> >
> > --
> > Peter Dalgaard, Professor,
> > Center for Statistics, Copenhagen Business School Solbjerg Plads 3,
> > 2000 Frederiksberg, Denmark
> > Phone: (+45)38153501
> > Office: A 4.23
> > Email: pd....@cbs.dk  Priv: pda...@gmail.com
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to