powered by
Create a bar plot visualizing probabilities associated to the different stages of a variable in a staged event tree.
# S3 method for sevt barplot( height, var, ignore = height$name_unobserved, beside = TRUE, horiz = FALSE, legend.text = FALSE, col = NULL, xlab = ifelse(horiz, "probability", NA), ylab = ifelse(!horiz, "probability", NA), ... )
an object of class sevt.
sevt
name of a variable in object.
object
vector of stages which will be ignored and left untouched, by default the name of the unobserved stages stored in object$name_unobserved.
object$name_unobserved
a logical value. See barplot.
barplot
logical.
color mapping for the stages, see col argument in plot.sevt.
col
plot.sevt
a label for the x axis.
a label for the y axis.
additional arguments passed to barplot.
As barplot: A numeric vector (or matrix, when beside = TRUE), giving the coordinates of all the bar midpoints drawn, useful for adding to the graph.
# NOT RUN { model <- stages_fbhc(full(PhDArticles, lambda = 1)) barplot(model, "Kids", beside = TRUE) # }
Run the code above in your browser using DataLab