| plot_predicted_expr {BPRMeth} | R Documentation |
plot_predicted_expr creates a scatter plot of predicted
gene expression values on the x-axis versus the measured gene expression
values on the y-axis.
plot_predicted_expr(pred_obj, title = "Predicted expression", is_margins = FALSE)
pred_obj |
The output of the |
title |
The title of the plot. |
is_margins |
Use specified margins or not. |
A ggplot2 object.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
plot_infer_profiles,
plot_cluster_profiles, boxplot_cluster_expr
# Fit methylation profiles using 5 RBFs
basis <- create_rbf_object(M = 5)
prof <- infer_profiles_vb(X = encode_met$met, model = "binomial",
basis = basis, is_parallel = FALSE, vb_max_iter = 5)
# Predict expression
pred_obj <- predict_expr(prof_obj = prof, expr = encode_expr,
anno = encode_met$anno, model_name = "lm", is_summary = FALSE)
# Create plot
g <- plot_predicted_expr(pred_obj = pred_obj)