[R] Dotchart and its arguments

2019-02-20 Thread Robert Zimbardo
Hi all I was recently trying to customise a dotchart of a matrix dats <- matrix(1:6, nrow=2, dimnames=list(R=letters[1:2], C=letters[14:16])) dotchart(dats) with pch and pt.cex and noticed some irregularities, namely that R doesn't use the values in the positions it uses for plotting also for th

Re: [R] particle count probability

2019-02-20 Thread Jim Lemon
Okay, suppose the viewing field is circular and we consider two particles as in the attached image. Probability of being within the field: R0 > sqrt((x1+R1-x0)^2 + (y1+R1-y0)^2) Probability of being outside the field: R0 < sqrt((x2-R1-x0)^2 + (y2-R1-y0)^2) Since these are the limiting cases, it l

Re: [R] particle count probability

2019-02-20 Thread Rolf Turner
On 2/21/19 12:16 AM, PIKAL Petr wrote: Dear all Sorry, this is probably the most off-topic mail I have ever sent to this help list. However maybe somebody could point me to right direction or give some advice. In microscopy particle counting you have finite viewing field and some particles coul

[R] cmocean color palette

2019-02-20 Thread Roy Mendelssohn - NOAA Federal via R-help
Hi All: If it would be of use to anyone, I have the latest version of the Kristen Thyng's beautiful cmocean color palettes (see https://matplotlib.org/cmocean/ ) converted to be used in R. These colormaps have been carefully designed given the latest ideas of what makes for a good palette,

Re: [R] particle count probability

2019-02-20 Thread Jim Lemon
Hi Petr, This is off the top of my head, but I assume that the shape of the particle is not considered in counting. Assume particles are uniformly distributed in the viewing field. If all particles entirely within the field are counted, large particles will be undercounted. If all particles within

Re: [R] matrix subset problem with factors

2019-02-20 Thread Jeff Newmiller
With on official weight, I second the opinion that the existing behavior is appropriate and not a bug. Functions should not "unexpectedly" return factors... a common example are the read.table family of functions that by default return factors, but the behaviour is deterministic and controllabl

Re: [R] matrix subset problem with factors

2019-02-20 Thread Marc Schwartz via R-help
Hi, I get the same behavior in R 3.5.2 on macOS. Others may feel differently, but I am not so sure that this is a bug, as opposed to perhaps the need to clarify in ?Extract, that the following, which is found under Atomic vectors: "The index object i can be numeric, logical, character or empty

[R] matrix subset problem with factors

2019-02-20 Thread ऋषि / rIsHi
Hi All, I like to report this bug related to matrix subset by rownames when passed as factors. Now factors are may not be safe to use but then it should generate a warning message. Since many time we use values returned by some packages as factor to subset a matrix and which may result in a wrong

Re: [R] Save creates huge files, dump doesn't

2019-02-20 Thread Lars Velten
Dear Bill, dear all, yes that seems to be it. The problem orginates from objects of class transformMap from package flowCore > object_size(object@transforms@transforms$PC1.all@f) 174 MB > object.size(object@transforms@transforms$PC1.all@f) 1160 bytes object@transforms@transforms$PC1.all@f fun

Re: [R] Save creates huge files, dump doesn't

2019-02-20 Thread William Dunlap via R-help
Also, note that the function function(x) x has no free variables so it doesn't matter what environment encloses it. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Feb 20, 2019 at 7:47 AM William Dunlap wrote: > object@transforms@transforms$PC1.all@f > function(x) x > > Do you kno

Re: [R] Save creates huge files, dump doesn't

2019-02-20 Thread William Dunlap via R-help
object@transforms@transforms$PC1.all@f function(x) x Do you know how to 'see' what's in 0x3314db8 ? ls.str(all=TRUE, environment(object@transforms@transforms$PC1.all@f) will list the names, types, summaries, etc. of the objects in that environment. Bill Dunlap TIBCO Software wdunlap tibco.com

Re: [R] particle count probability

2019-02-20 Thread Roger Koenker
Somewhere, buried in the vast literature on the Wicksell problem, there is probably an answer, or at least a hint. > On Feb 20, 2019, at 11:16 AM, PIKAL Petr wrote: > > Dear all > > Sorry, this is probably the most off-topic mail I have ever sent to this help > list. However maybe somebody

[R] particle count probability

2019-02-20 Thread PIKAL Petr
Dear all Sorry, this is probably the most off-topic mail I have ever sent to this help list. However maybe somebody could point me to right direction or give some advice. In microscopy particle counting you have finite viewing field and some particles could be partly outside of this field. My

Re: [R] [R-SIG-Mac] character set problem

2019-02-20 Thread bretschr
Dear Peter Anthoni, Re: > On 20 Feb 2019, at 07:22, Peter Anthoni wrote: > > is your keyboard type US. International -PC, that will insert the weird caret. > > > > cheers > > Peter That 's it!!! What I thought to be the most universal keyboard proved to be the culprit. Changed to simp