Re: [R] Multiple Histograms in R

2017-04-21 Thread Gerrit Draisma
v.name="Value") histogram(Churn~Value|Characteristic,nint=10,data=ppdat) Message: 1 Date: Thu, 20 Apr 2017 16:54:35 +0530 From: prateek pande To: Hasan Diwan Cc: r-help mailing list Subject: Re: [R] Multiple Histograms in R Message-ID: Content-Type: text/plain; cha

Re: [R] Multiple Histograms in R

2017-04-20 Thread Ulrik Stervbo
Hi Prateek, maybe facet_* with ggplot is what you are looking for HTH Ulrik On Thu, 20 Apr 2017 at 13:24 prateek pande wrote: > HI Hasan, > > Thanks for sharing the solution. Really appreciate it. > > But i was reading somewhere that we cannot use par with ggplot 2 . we can > only use grid ext

Re: [R] Multiple Histograms in R

2017-04-20 Thread prateek pande
HI Hasan, Thanks for sharing the solution. Really appreciate it. But i was reading somewhere that we cannot use par with ggplot 2 . we can only use grid extra to have multiple plots in a single view. Is it right? Regards Prateek On Thu, Apr 20, 2017 at 10:47 AM, Hasan Diwan wrote: > Prateek,

Re: [R] Multiple Histograms in R

2017-04-19 Thread Hasan Diwan
Prateek, I'm shocked this isn't answered previously, but you can try the par command (mfrow and mfcol parameters) and par(mfrow=n, mfcol=m) will generate n plots per row and m rows per column. For subsequent questions, please do a search through the archives before asking. -- H On 19 April 2017 at

Re: [R] Multiple Histograms in R

2017-04-19 Thread Jim Lemon
Hi Prateek, There is some difficulty with including the empty categories in the factors generated. I couldn't get these even with drop=FALSE, so I had to go through the "xtab" function. You can do it with the "table" function in the base package, but it is a little more trouble. See if this is what

Re: [R] Multiple Histograms in R

2017-04-19 Thread Bert Gunter
Also, *if* this is homework, don't post at all, as this list is not for doing homework (though, for better or worse, sometimes such help is provided). -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley

Re: [R] Multiple Histograms in R

2017-04-19 Thread Rui Barradas
Hello, Maybe package psych, function multi.hist is what you want. https://cran.r-project.org/web/packages/psych/index.html And don't post in HTML, your data is unreadable. Hope this helps, Rui Barradas Em 19-04-2017 14:05, prateek pande escreveu: Hi, I have a data as mentioned below(at the

[R] Multiple Histograms in R

2017-04-19 Thread prateek pande
Hi, I have a data as mentioned below(at the bottom) Now out of that data i have to create multiple histograms in a single view in R. On that histogram i need on x -axis binned data with Breaks 10 and on y axis event rate . Here churn is dependent variable. *for example, for mou_mean , on x -ax