Last data update: 2014.03.03

R: Utilities for LC class
LC-utilsR Documentation

Utilities for LC class

Description

The "LC" class is the core property of the LICORS model as it specifies the spatio-temporal neighborhood of the past and future light cone. The function setup_LC_geometry generates an instance of the "LC" class.

plot.LC plots LCs of (1+1)D and (2+1)D systems with respect to the origin (mathbf{r}, t) = (oldsymbol 0, 0). This is especially useful for a quick check if the LC geometry specified by setup_LC_geometry is really the intended one.

summary.LC prints a summary of the LC geometry. Returns (invisible) the summary matrix.

LC_coordinates2control_setting computes auxiliary measures given the LC geometry such as horizon, spatial/temporal extension, etc. This function should not be called by the user directly; only by get_spacetime_grid.

Usage

## S3 method for class 'LC'
plot(x, cex.axis = 2, cex.lab = 2, ...)

## S3 method for class 'LC'
summary(object, verbose = TRUE, ...)

LC_coordinates2control_settings(LC.coordinates)

Arguments

x

an object of class "LC" (see setup_LC_geometry)

cex.axis

The magnification to be used for axis annotation relative to the current setting of cex.

cex.lab

The magnification to be used for x and y labels relative to the current setting of cex.

...

optional arguments passed to plot.

object

an object of class "LC"

verbose

logical; if TRUE LC information is printed in the console

LC.coordinates

template of a light cone (with respect to origin)

See Also

compute_LC_coordinates

Examples

aa <- setup_LC_geometry(horizon = list(PLC = 2, FLC = 1), speed = 1, space.dim = 1, 
    shape = "cone")
plot(aa)
bb <- setup_LC_geometry(horizon = list(PLC = 2, FLC = 1), speed = 1, space.dim = 1, 
    shape = "revcone")
plot(bb)
aa <- setup_LC_geometry(horizon = list(PLC = 2, FLC = 0), speed = 1, space.dim = 1, 
    shape = "cone")
summary(aa)
aa <- setup_LC_geometry(horizon = list(PLC = 2, FLC = 0), speed = 1, space.dim = 1, 
    shape = "cone")
LC_coordinates2control_settings(aa$coordinates)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(LICORS)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LICORS/LC-utils.Rd_%03d_medium.png", width=480, height=480)
> ### Name: LC-utils
> ### Title: Utilities for LC class
> ### Aliases: LC_coordinates2control_settings LC-utils plot.LC summary.LC
> ### Keywords: hplot method models print
> 
> ### ** Examples
> 
> aa <- setup_LC_geometry(horizon = list(PLC = 2, FLC = 1), speed = 1, space.dim = 1, 
+     shape = "cone")
> plot(aa)
> bb <- setup_LC_geometry(horizon = list(PLC = 2, FLC = 1), speed = 1, space.dim = 1, 
+     shape = "revcone")
> plot(bb)
> aa <- setup_LC_geometry(horizon = list(PLC = 2, FLC = 0), speed = 1, space.dim = 1, 
+     shape = "cone")
> summary(aa)
   PLC  FLC
1    2    0
2    1    1
3 cone cone
4    8    1
* * * * * * * * * * * * * * * * * * * *
 
The field extends over a 1-dimensional space. 
Light cones have therefore the following characteristics: 
 
                PLC  FLC
horizon           2    0
speed             1    1
shape          cone cone
dimensionality    8    1

* * * * * * * * * * * * * * * * * * * *> aa <- setup_LC_geometry(horizon = list(PLC = 2, FLC = 0), speed = 1, space.dim = 1, 
+     shape = "cone")
> LC_coordinates2control_settings(aa$coordinates)
$n.p
[1] 8

$n.f
[1] 1

$space.dim
[1] 1

$horizon
$horizon$PLC
[1] 2

$horizon$FLC
[1] 0


$space.cutoff
[1] 2

> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>