[R] Histogram with a wide range of numbers.

Jim Lemon drjimlemon at gmail.com
Thu Jan 21 22:44:07 CET 2016


Hi Sema,
I trimmed your file to the first 220 lines.

ads<-read.table("all_data_scor.txt",header=TRUE,sep="\t")
ads.tab<-table(cut(all_data_scor[,2],breaks=c(0,1e-100,1e-10,1e-1,1,10)))
barplot(adt.tab)

This gives you a basic idea of what can be done. If this is not clear, ask
again.

Jim


On Thu, Jan 21, 2016 at 8:16 PM, Sema Atasever <s.atasever at gmail.com> wrote:

> Dear Authorized Sir / Madam,
>
> I need your opinion on something R.
> I have a sample text file that includes eValue scores (2nd column).
> This column includes a wide range of numbers. For example: 1e-179 or 9.9
> You can find this text file in the attachment.
>
> How do I create a histogram in R with logarithmic scale or
> which method do i use these values which includes with a wide range of
> numbers.
>
> I would appreciate if you could advise on some methods.
>
> Thanks.
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list