Re: [R] limit bar graph output

2018-10-14 Thread Jeff Newmiller
A reproducible example would help here (you cannot assume we know what type "miRNA" is) but guessing from the use of "reorder" I suspect it is a factor. In which case after you subset you will need to use the droplevels function to remove the unused levels, and then plot that prepared data. On

Re: [R] limit bar graph output

2018-10-14 Thread Bert Gunter
If I understand correctly, just subset your sorted data. e.g. : x <- runif(50) ## 50 unsorted values sort(x, dec = TRUE)[1:10] ## the 10 biggest -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley B

Re: [R] Scientific Notation

2018-10-14 Thread Jeff Newmiller
While the OP should study up on what numeric values are, context may determine that a different storage mode be used. For example, if the values are intrinsically integers and meet the appropriate magnitude requirements, importing as integer may make sense. Or, if these are identifiers like seri

Re: [R] Scientific Notation

2018-10-14 Thread Jeff Reichman
Mr. Carlson Well that was easy enough. Thank you. Options - https://stat.ethz.ch/R-manual/R-devel/library/base/html/options.html Jeff From: David L Carlson Sent: Sunday, October 14, 2018 8:58 PM To: r-help@r-project.org; reichm...@sbcglobal.net Subject: Re: [R] Scientific Notation

[R] limit bar graph output

2018-10-14 Thread Jeff Reichman
R-Help Forum I'm using the following code to reorder (from highest to lowest) my miRNA counts. But there are 500 plus and I only need the first (say) 15-20. How do I limit ggplot to only the first 20 miRNA counts ggplot(data = corr.m, aes(x = reorder(miRNA, -value), y = value, fill = variable))

Re: [R] Scientific Notation

2018-10-14 Thread David L Carlson
You probably need to read up on the scipen= argument in ?options. What is displayed at the console is not what is stored: > x <- 1619052826499 > print(x) [1] 1.619053e+12 > dput(x) 1619052826499 > options(scipen=10) > print(x) [1] 1619052826499 - David L Carlson Anthro

[R] Scientific Notation

2018-10-14 Thread Jeff Reichman
R Forum Is there a way to tell R to not import numbers as scientific notation (read.csv). So that 1619052826499 will not be imported as 1.619053e+12. Jeff Reichman __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.

Re: [R] [FORGED] Re: Wavelet Package for Time Series

2018-10-14 Thread Rolf Turner
On 10/14/2018 01:26 PM, Jeff Newmiller wrote: Any question about "best" implies an optimization function that will almost certainly vary depending on what you are interested in ... please avoid asking such questions. Fortune nomination. cheers, Rolf -- Technical Editor ANZJS Department of