[R] Multiple Histograms in R

Bert Gunter bgunter.4567 at gmail.com
Wed Apr 19 16:46:19 CEST 2017


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 Breathed in his "Bloom County" comic strip )


On Wed, Apr 19, 2017 at 6:20 AM, Rui Barradas <ruipbarradas at sapo.pt> wrote:
> 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 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 -axis on histogram i need Bins(mou_mean)
>> and on y - axis in need Churn%age. *
>> *Bins(mou_mean)*
>>
>> *Churn %age*
>> 23-43                                          0.23%
>> 33-53                                          0.5%
>> 43-63                                           0.3%
>> 53-73                                           0.4%
>> 63-83                                           0.7%
>> 83-103                                        0.8%
>>
>> Please help
>>
>>
>> *mou_mean*
>>
>> *totalmrc_mean*
>>
>> *rev_range*
>>
>> *mou_range*
>>
>> *Churn*
>>
>> 23
>>
>> 24
>>
>> 25
>>
>> 27
>>
>> 1
>>
>> 45
>>
>> 46
>>
>> 47
>>
>> 49
>>
>> 1
>>
>> 43
>>
>> 44
>>
>> 45
>>
>> 47
>>
>> 1
>>
>> 45
>>
>> 46
>>
>> 47
>>
>> 49
>>
>> 0
>>
>> 56
>>
>> 57
>>
>> 58
>>
>> 60
>>
>> 0
>>
>> 67
>>
>> 68
>>
>> 69
>>
>> 71
>>
>> 1
>>
>> 67
>>
>> 68
>>
>> 69
>>
>> 71
>>
>> 0
>>
>> 44
>>
>> 45
>>
>> 46
>>
>> 48
>>
>> 1
>>
>> 33
>>
>> 34
>>
>> 35
>>
>> 37
>>
>> 0
>>
>> 90
>>
>> 91
>>
>> 92
>>
>> 94
>>
>> 1
>>
>> 87
>>
>> 88
>>
>> 89
>>
>> 91
>>
>> 1
>>
>> 76
>>
>> 77
>>
>> 78
>>
>> 80
>>
>> 1
>>
>> 33
>>
>> 34
>>
>> 35
>>
>> 37
>>
>> 1
>>
>> 44
>>
>> 45
>>
>> 46
>>
>> 48
>>
>> 1
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at 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 at 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.



More information about the R-help mailing list