plot_predicted_expr {BPRMeth} | R Documentation

## Scatter plot of predicted vs measured gene expression levels

### 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

    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

    # 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)

[Package BPRMeth version 1.16.0 Index]