Re: [R] unexpected behavior in apply

2021-10-13 Thread Derickson, Ryan, VHA NCOD via R-help
If an oven expects fried potatoes and I put a cake in, I would hope it complains or does nothing rather than surreptitiously poisoning my cake. Jiefei's finding that "6" becomes " 6" during matrix coercion (apparently for aesthetic reasons only) feels more like the latter. But I appreciate the expl

Re: [R] How to rotate only one panel by 90 degrees in R plot?

2021-10-13 Thread Luigi Marongiu
Thank you! On Wed, Oct 13, 2021 at 12:00 PM Deepayan Sarkar wrote: > > On Wed, Oct 13, 2021 at 12:13 PM Luigi Marongiu > wrote: > > > > I have seen that the only package that easily rotate the plot is > > ggplot, so I ran: > > ``` > > library(ggplot2) > > df = data.frame(MR = c(negative_mr, unce

Re: [R] How to rotate only one panel by 90 degrees in R plot?

2021-10-13 Thread Deepayan Sarkar
On Wed, Oct 13, 2021 at 12:13 PM Luigi Marongiu wrote: > > I have seen that the only package that easily rotate the plot is > ggplot, so I ran: > ``` > library(ggplot2) > df = data.frame(MR = c(negative_mr, uncertain_mr, positive_mr), > FCN = c(negative_fcn, uncertain_fcn, positive_fcn)) > p <- gg

[R] How to find local minimum between distributions using mixtools?

2021-10-13 Thread Luigi Marongiu
Hello, I have two peaks distributions (and some noise values in between), and I used mixtools to characterize the two overlapping data. How can I find the minimum between the peak distributions? The sigma value of the second population is close to that value, but I am not sure if this is really the