plot.aphylo_prediction_score {aphylo} | R Documentation |
Visualize predictions
Description
Visualize predictions
Usage
## S3 method for class 'aphylo_prediction_score'
plot(
x,
y = NULL,
main = "Prediction Accuracy: Observed versus predicted values",
main.colorkey = "Probability of Functional Annotation",
which.fun = seq_len(ncol(x$expected)),
include.labels = NULL,
labels.col = "black",
leafs_only = TRUE,
...
)
Arguments
x |
An object of class |
y |
Ignored. |
main |
Passed to |
main.colorkey |
Character scalar. Title of the colorkey (optional). |
which.fun |
Integer vector. Which function to plot. |
include.labels |
Logical scalar. When |
labels.col |
Character scalar. Color of the labels. |
leafs_only |
Logical. When |
... |
Ignored |
Details
If include.labels = NULL
and ncol(x$expected) > 40
,
then include.labels=FALSE
by default.
Value
NULL (invisible) Generates a plot of the predictions.
Examples
set.seed(8783)
atree <- raphylo(29)
ans <- aphylo_mle(atree ~ mu_d + mu_s + Pi)
pred_s <- prediction_score(ans)
pred_s
plot(pred_s)
[Package aphylo version 0.3-3 Index]