plot_predicted_expr: Scatter plot of predicted vs measured gene expression levels

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotting_functions.R

Description

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.

Usage

1
2
3
4
5
plot_predicted_expr(
  pred_obj,
  title = "Predicted expression",
  is_margins = FALSE
)

Arguments

pred_obj

The output of the predict_expr function.

title

The title of the plot.

is_margins

Use specified margins or not.

Value

A ggplot2 object.

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

See Also

plot_infer_profiles, plot_cluster_profiles, boxplot_cluster_expr

Examples

1
2
3
4
5
6
7
8
9
# 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)

andreaskapou/BPRMeth documentation built on June 11, 2020, 10:49 p.m.