R: Generates ranges of the unknowns of a linear inverse problem
Xranges
R Documentation
Generates ranges of the unknowns of a linear inverse problem
Description
Given an inverse input list, generates the minimal and maximal
values of the unknowns
Usage
Xranges (lim, ...)
Arguments
lim
a list that contains the linear inverse model
specification, as generated by function setup.limfile.
...
extra arguments passed to function
xranges from packagelimSolve.
Value
a 2-columned vector containing the minimum (column 1) and
maximum (column 2) of each unknown.
Author(s)
Karline Soetaert <karline.soetaert@nioz.nl>
See Also
Varranges which estimates the ranges of inverse variables
Plotranges to plot the ranges
function xranges from packagelimSolve
Examples
# ranges
xr <- Xranges(LIMRigaAutumn)
xlim <- range(xr)
# parsimonious
pars <- Lsei(LIMRigaAutumn)$X
# plot
dotchart(x = pars, labels = rownames(xr), xlim = xlim,
main = "Riga Autumn ",
sub = "ranges and parsimonious solution", pch = 16)
cc <- 1:nrow(xr)
segments(xr[ ,1], cc, xr[ ,2], cc)
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(LIM)
Loading required package: limSolve
Loading required package: diagram
Loading required package: shape
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LIM/Xranges.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Xranges
> ### Title: Generates ranges of the unknowns of a linear inverse problem
> ### Aliases: Xranges
> ### Keywords: optimize utilities
>
> ### ** Examples
>
> # ranges
> xr <- Xranges(LIMRigaAutumn)
> xlim <- range(xr)
>
> # parsimonious
> pars <- Lsei(LIMRigaAutumn)$X
Warning message:
In Lsei.lim(LIMRigaAutumn) :
Lsei.lim - there are no approximate equations in lsei!
>
> # plot
> dotchart(x = pars, labels = rownames(xr), xlim = xlim,
+ main = "Riga Autumn ",
+ sub = "ranges and parsimonious solution", pch = 16)
> cc <- 1:nrow(xr)
> segments(xr[ ,1], cc, xr[ ,2], cc)
>
>
>
>
> dev.off()
null device
1
>