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.