Re: [R] histogram with density

2011-05-24 Thread Peter Ehlers
On 2011-05-23 21:31, Rekha wrote: S . Am getting error still now if i use both version of the codes . i have to call any library? Your code works fine for me, too, as it should. Have you perhaps redefined the hist() function? Do you get a histogram? The error you quote would result if you call

Re: [R] histogram with density

2011-05-23 Thread Steve Lianoglou
On Tue, May 24, 2011 at 12:31 AM, Rekha wrote: > S . Am getting error still now if i use both version of the codes . > > i have to call any library? No. The code you've written here doesn't require loading any other R libraries. Please copy and paste the exact code you've entered along with the

Re: [R] histogram with density

2011-05-23 Thread Rekha
S . Am getting error still now if i use both version of the codes . i have to call any library? On Tue, May 24, 2011 at 9:22 AM, Steve Lianoglou < mailinglist.honey...@gmail.com> wrote: > Hi, > > On Mon, May 23, 2011 at 11:41 PM, Rekha wrote: > > Hello All,* > > > > *I want to draw a histogram

Re: [R] histogram with density

2011-05-23 Thread Steve Lianoglou
Hi, On Mon, May 23, 2011 at 11:41 PM, Rekha wrote: > Hello All,* > > *I want to draw a histogram with density curve. * > > *For that simply i created a data called*"x" *and i used the function called > *    hist(x, col = "blue", freq = FALSE),**   *from this function i got a > histogram*. > > *Af

[R] histogram with density

2011-05-23 Thread Rekha
Hello All,* *I want to draw a histogram with density curve. * *For that simply i created a data called*"x" *and i used the function called *hist(x, col = "blue", freq = FALSE),** *from this function i got a histogram*. *After that , i tried this function* ** lines(density(x), col = "red",