Re: [R] collided row names in heatmap.2

2021-08-11 Thread Jim Lemon
Hi Elham, Your image didn't get through, maybe PNG will work. Label crowding is a common problem, whether horizontal or vertical. One solution is to set a maximum length on label text (see truncString in the prettyR package). Others are to stagger labels (staxlab in plotrix) or shift them apart whe

Re: [R] collided row names in heatmap.2

2021-08-11 Thread Bert Gunter
1. This is R-help. RStudio is a separate IDE from a private for-profit company. You should go to their website for help with that: https://www.rstudio.com/support/ 2. I may be wrong, of course, but I believe your information is too vague for folks to provide useful help: "row names collided with e

[R] collided row names in heatmap.2

2021-08-11 Thread Elham Hooshmand
Hi, I am trying to draw a heatmap for my 45 topvar gene by the use of heatmap.2, and when I set a srtRow=45 in my code(below): heatmap.2( assay(rld)[ topVarGenes, ], srtRow=45, scale="row",trace="none", dendrogram="column",col = colorRampPalette( rev(brewer.pal(9, "RdBu")) )(255)) row names coll

[R] Volume 13/1, June 2021 now available

2021-08-11 Thread Dianne Cook
Dear R Community, The first issue of the R Journal for 2021 is now available at https://journal.r-project.org/. There is also a dev version of rending articles in html at https://journal.r-project.org/dev/. Particularly look at articles by Earo Wang for embedded interactive graphics, and by M

Re: [R] Formula compared to call within model call

2021-08-11 Thread Martin Maechler
> Tim Taylor > on Wed, 11 Aug 2021 08:45:48 + writes: > Manipulating formulas within different models I notice the following: > m1 <- lm(formula = hp ~ cyl, data = mtcars) > m2 <- update(m1, formula. = hp ~ cyl) > all.equal(m1, m2) > #> [1] TRUE > identica

Re: [R] Sample size Determination to Compare Three Independent Proportions

2021-08-11 Thread AbouEl-Makarim Aboueissa
Hi Marc: Thank you for your help in this matter. With thanks Abou On Tue, Aug 10, 2021, 9:28 AM Marc Schwartz wrote: > Hi, > > A search would suggest that there may not be an R function/package that > provides power/sample size calculations for the specific scenarios that > you are describi

[R] Formula compared to call within model call

2021-08-11 Thread Tim Taylor
Manipulating formulas within different models I notice the following: m1 <- lm(formula = hp ~ cyl, data = mtcars) m2 <- update(m1, formula. = hp ~ cyl) all.equal(m1, m2) #> [1] TRUE identical(m1, m2) #> [1] FALSE waldo::compare(m1, m2) #> `old$call[[2]]` is a call #> `new$call[[2]]` is an S3 objec