Description Usage Arguments See Also Examples
Plot the cow attribute either a barplot with prediction interval, either a radar diagram
1 2 3 |
cow |
a object of class 'cow' which will be plot |
models |
list of all the models describing the cow attributes |
choice |
choice of the graph among 'barplot' (by default) and 'radar_diag' |
label_angle |
integer between 0 and 360 which is the angle of the x labels for the barplot |
fixed_value |
vector containing the postion of the cow attributes which do not need prediction interval |
R |
integer for the number of predicted value by under-models for prediction interval (100 by default). Warning, if the number of the under-model is lower than R, the number of under-model will be the max. |
1 2 3 4 5 6 | library(mfe)
load(models.RData) #need models fitted
data(indicateurs)
cow0 <- setNames(data.frame(matrix(0, ncol = ncol(indicateurs), nrow = 1)), colnames(indicateurs))
pred_cow <- predict_cow(cow_simulated = cow0, models = models, list_index = 1:3, list_value = c(0, 1, -0.5), B=5, R=10)
plot(pred_cow)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.