Full_Name: Wolfgang Resch
Version: R 2.8.1 GUI 1.27
OS: OS X 10.4.11
Submission from: (NULL) (137.187.89.14)
Strange behavior of qbinom:
qbinom(0.01, 5016279, 1e-07)
[1] 0
qbinom(0.01, 5016279, 2e-07)
[1] 16
qbinom(0.01, 5016279, 3e-07)
[1] 16
qbinom(0.01, 5016279, 4e-07)
[1] 16
wolfgang.re...@gmail.com wrote:
Full_Name: Wolfgang Resch
Version: R 2.8.1 GUI 1.27
OS: OS X 10.4.11
Submission from: (NULL) (137.187.89.14)
Strange behavior of qbinom:
qbinom(0.01, 5016279, 1e-07)
[1] 0
qbinom(0.01, 5016279, 2e-07)
[1] 16
qbinom(0.01, 5016279, 3e-07)
[1] 16
I've been thinking hard about generating colour schemes for data.
There's quite a bit of existing code scattered in various packages for
playing with colours and colour palettes, but I can't find the sort of
thing I'm after for applying colours to data...
To my mind a colour scheme is a
On 21 May 2009 at 07:11, Prof Brian Ripley wrote:
| You would need not to use UseDynLib in the NAMESPACE, but load the DLL
| in the .onLoad via library.dynam.
Martin Morgan had suggested the same in private mail, and that is indeed the
solution: do not load the dynamic library via NAMESPACE,
On Thu, May 21, 2009 at 2:18 PM, richard.cot...@hsl.gov.uk wrote:
Most of the plots where colour is typically used to signify a variable
already do map colours to data values. Take a look at help pages for
levelplot/contourplot/wireframe from the lattice package, and image from
base
I'm going to take your second example first.
The base graphics image function has zlim arguments which let you do:
z=outer(1:10,1:10,*)
image(z)
image(z/2, zlim=range(z))
but again, not obvious, and complex/impossible when using more
sophisticated colour mappings.
The way to do
I noticed the following file descriptor leak when I couldn't remove
a package unless I shut down the R session that had loaded and
used it. The function that triggered the problem printed the output
of a call to parse(). Each time one prints a srcref a connection is
opened and not closed. It
Yes, but these things are all at the wrong conceptual level. What you
are constructing here is a function that maps value to colour, but
keeping it as breaks and cut values and colours instead of
representing it as a function. Wouldn't it be nicer to build a real
function object and have
On Thu, May 21, 2009 at 10:53 AM, Barry Rowlingson
b.rowling...@lancaster.ac.uk wrote:
On Thu, May 21, 2009 at 5:29 PM, Deepayan Sarkar
deepayan.sar...@gmail.com wrote:
[oops I didnt reply-to-all]
But you could specify an explicit 'at' vector specifying the color
breakpoints: effectively,
This was my original post, with the code example only slightly modified by
Martin for clarity. Prior to R-2.9.0, this repeated downloading did not
occur, the code worked as intended. In fact, if memory serves me correctly,
it even worked at least during the first 3 months of R-2.0.0 in its
Hi,
just found a small typo in help(sample). In 'Arguments' section, where
says
n: a non-negaiive integer, the number of items to choose from.
should be
n: a non-negative integer, the number of items to choose from.
I didn't filled a bug report because this is very trivial.
[Sorry, forget the version below...]
Hi,
just found a small typo in help(sample). In 'Arguments' section, where
says
n: a non-negaiive integer, the number of items to choose from.
should be
n: a non-negative integer, the number of items to choose from.
I didn't filled a bug
12 matches
Mail list logo