boxplot_cluster_expr: Boxplot of clustered expression levels

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotting_functions.R

Description

Create a boxplot of clustered gene expression levels which depend on the clustered methylation profiles. Each colour denotes a different cluster.

Usage

1
boxplot_cluster_expr(cluster_obj, expr, anno, title = "Expression levels")

Arguments

cluster_obj

The output from cluster_profiles_vb or cluster_profiles_mle functions.

expr

The expression data object.

anno

The annotation data object.

title

Plot title

Value

A ggplot2 object.

Author(s)

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

See Also

plot_cluster_profiles, plot_infer_profiles, plot_predicted_expr

Examples

1
2
3
4
5
6
7
8
# Cluster methylation profiles using 3 RBFs
basis <- create_rbf_object(M = 3)
# Perform clustering
cl_obj <- cluster_profiles_vb(X = encode_met$met, K = 3, model = "binomial",
           basis = basis, vb_max_iter = 5)
# Create plot
g <- boxplot_cluster_expr(cluster_obj = cl_obj, expr = encode_expr,
       anno = encode_met$anno)

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