RNV.mean.suitability: Compare RNV mean in simulation with predicted RNV at...

Description Usage Arguments Details Value See Also Examples

View source: R/RNV.mean.suitability.R

Description

Compare RNV mean in simulation with predicted RNV at equilibrium to measure suitability of RNV mean as a proxy of RNV at equilibrium With a graph and a linear model.

Usage

1
2
RNV.mean.suitability(all_res_sim,end.mean=TRUE,which.sim=NULL,
new.window=FALSE,posi.legend="topleft",...)

Arguments

all_res_sim

List, the output of function simul.evol.enz.multiple (results of evolution simulation).

end.mean

Logical. If FALSE, compute RNV size mean for all rows of res_sim. If TRUE, compute RNV size mean for last half of res_sim rows.

which.sim

Numeric vector containing integer numbers between 1 and nsim. Which simulations would you represent? If NULL (default), all simulations would be represented.

new.window

Logical. Do graphics appear in a new window?

posi.legend

Character string. Where would you put the legend? See parameter x in function legend. If NULL, legend will not appear.

...

Arguments to be passed in plot function, such as lwd or cex.

Details

Function RNV.mean.suitability computes mean of RNV size by enzyme, using function RNV.mean.simul. It computes also the RNV size around predicted equilibrium, using function RNV.size.at.equilibr. Then RNV.mean.suitability plots the RNV means in relation to predicted RNVs for every enzyme and every simulation.

RNV.mean.suitability computes also a linear model of RNV means in relation to RNV size at equilibrium, for selected simulations only (by setting which.sim).

Each simulation corresponds to one color. Colors for simulations are taken in palette rainbow. Displayed number is the enzyme number. Black line is the linear model. Dashed line is the symmetry line.

Function RNV.mean.suitability is designed to compute mean RNV from simulations launched by simul.evol.enz.multiple. Input all_res_sim is the output of simul.evol.enz.multiple.

Value

Invisible list of 6 elements:

See Also

Function RNV.for.simul is used to compute RNV.

Function RNV.mean.simul is used to compute RNV mean for each simulation.

Function RNV.size.at.equilibr is used to compute RNV at equilibrium.

Examples

1
2
3
4
5
6
7
# With saved simulation
data(data_sim_SC)
RNV.mean.suitability(data_sim_SC,new.window=TRUE,which.sim=c(1,4,6))


data(data_sim_RegNeg)
RNV.mean.suitability(data_sim_RegNeg,new.window=TRUE)

SimEvolEnzCons documentation built on Oct. 29, 2021, 1:07 a.m.