penrose | R Documentation |
Penrose diagrams of the universe either with or without a black hole, using different transforms.
penrose_cauchy(colours=standard_colours, ...)
penrose_laplace(colours=standard_colours, ...)
penrose_logistic(colours=standard_colours, ...)
penrose_norm(colours=standard_colours, ...)
penrose_BH_cauchy(colours=standard_colours, ...)
penrose_BH_laplace(colours=standard_colours, ...)
penrose_BH_logistic(colours=standard_colours, ...)
penrose_BH_norm(colours=standard_colours, ...)
penrose_BH_extended(colours=standard_colours, ...)
penrose_transform(choice)
penrose_transform_backward(choice)
colours |
colours argument, a list |
choice |
In function |
... |
Further arguments, currently ignored |
A Penrose transform uses a map from the real line to the interval
(-1,1)
. Function penrose_transform()
returns one of several
Penrose transformations. The forward transform maps the real line to
the interval (-1,1)
and the backward transform is the inverse of
this. Argument choice
specifies a statistical distribution. The
forward transform uses the distribution's cumulative distribution
function (CDF) F(\cdot)
, but because the CDF maps to
(0,1)
rather than the desired (-1,1)
it maps x
to
2F(x)-1
. The backward transform uses the distribution's quantile
function Q(\cdot)
, mapping x
to Q((x+1)/2)
.
If the name of a function includes “_BH_
”, for example
penrose_BH_norm()
, then the diagram includes a black hole.
Functions penrose_foo()
and penrose_BH_foo()
are
executed for the side-effect of plotting a graph. Function
penrose_transformation()
returns a function which gives the
appropriate Penrose transform.
Although these functions can be called directly, they are designed to
be called by inst/maker.R
, which produces correctly-sized and
annotated PDF diagrams.
Robin K. S. Hankin
penrose_cauchy()
penrose_laplace()
penrose_logistic()
penrose_norm()
penrose_BH_cauchy()
penrose_BH_laplace()
penrose_BH_logistic()
penrose_BH_norm()
penrose_BH_extended()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.