View source: R/GraphicsPrediction.R
GraphicsPrediction | R Documentation |
This function takes into account the data used to estimate and the data used to predict.
GraphicsPrediction(
especie.All,
names.especie,
ExpectedValue.All,
VarianceValue.All,
Pred,
Plot.Tipe,
Detail
)
especie.All |
Matrix that contains at row i the bacterial taxa of bacteria i at all time points. |
names.especie |
Vector with the names of the bacteria in the same order that are placed in the |
ExpectedValue.All |
Matrix that contains at row i the expected value of the bacterial taxa i at all time points. The bacteria must be placed in the same order than in |
VarianceValue.All |
Matrix that contains at row i the variance of the bacterial taxa i at all time points. The bacteria must be placed in the same order than in |
Pred |
Number. Indicates the time point in which we start predicting. |
Plot.Tipe |
Character. If |
Detail |
Character. If |
Returns the indicated plots with a vertical line when the time point is equal to Pred-1, in Pred the prediction has started.
names.especie=c("Bact1", "Bact2", "Bact3")
especie.All=cbind(c(0.5,0.3,0.2),
c(0.6,0.3,0.1),
c(0.4,0.1,0.5),
c(0.4,0.1,0.5),
c(0.4,0.1,0.5),
c(0.4,0.1,0.5))
ExpectedValue.All=especie.All[,-1]+0.1
VarianceValue.All=matrix(c(runif(15,0.001,0.004)), 3,5)
Pred=4
GraphicsPrediction(especie.All,
names.especie,
ExpectedValue.All,
VarianceValue.All ,
Pred,
"Data",
"no")
GraphicsPrediction(especie.All,
names.especie,
ExpectedValue.All,
VarianceValue.All ,
Pred,
"DataExpected",
"no")
GraphicsPrediction(especie.All,
names.especie,
ExpectedValue.All,
VarianceValue.All ,
Pred,
"All",
"no")
GraphicsPrediction(especie.All,
names.especie,
ExpectedValue.All,
VarianceValue.All ,
Pred,
"Var",
"no")
GraphicsPrediction(especie.All,
names.especie,
ExpectedValue.All,
VarianceValue.All ,
Pred,
"OnlyVar",
"no")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.