plotBRBVS | R Documentation |
This function takes an object containing the results of the BRBVS algorithm and plots the active features against their relative frequencies for the two time to events.
plotBRBVS(object, ...)
object |
An object containing the results of the BRBVS algorithm.
Expected to contain matrices |
... |
Additional arguments to be passed to plotting functions. |
A ggplot object representing the BRBVS algorithm results. Features are displayed on the x-axis and their relative frequencies on the y-axis. The plot is split into two facets for each survival.
############################
# Toy Example
############################
BRBVS_object <- list(
mtx.act1E = c("z2", "z1", "0", "0"),
scores1E = c(20, 1, 1),
freq.rel1E = c(1, 1, 1, 1),
mtx.act2E = c("z2", "z1", "0", "0"),
scores2E = c(20, 1, 1),
freq.rel2E = c(1, 1, 1, 1),
metric = "FIM",
kmax = 4,
copula = "C0",
margins = c("PO", "PO"),
tau = 0.5,
Namecondings = matrix(
c("z1", "z1", "z2", "z2", "z3", "z3", "z4", "z4", "z5", "z5", "z6", "z6"),
nrow = 6, ncol = 2, byrow = TRUE,
dimnames = list(NULL, c("Features", "Code"))
)
)
class(BRBVS_object) <- "BRBVS"
plotBRBVS(BRBVS_object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.