plot_cluster_profiles: Plot clustered methylation profiles across a region

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotting_functions.R

Description

Function for plotting the clusterd methylation profiles across a given region where each colour denotes a different cluster.

Usage

1
2
3
4
5
6
7
8
plot_cluster_profiles(
  cluster_obj,
  title = "Clustered profiles",
  x_axis = "genomic region",
  y_axis = "met level",
  x_labels = c("Upstream", "", "Centre", "", "Downstream"),
  ...
)

Arguments

cluster_obj

Clustered profiles object, i.e. output from cluster_profiles_vb or cluster_profiles_mle functions.

title

Plot title

x_axis

x axis label

y_axis

x axis label

x_labels

x axis ticks labels

...

Additional parameters

Value

A ggplot2 object.

Author(s)

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

See Also

plot_infer_profiles, plot_predicted_expr, boxplot_cluster_expr

Examples

1
2
3
4
5
6
7
# 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 <- plot_cluster_profiles(cluster_obj = cl_obj)

BPRMeth documentation built on Nov. 8, 2020, 5:54 p.m.