plot_infer_profiles {BPRMeth} | R Documentation |
Function for plotting the inferred methylation profiles across a
given region, and optionally the mean methylation rate together with the
observed methylation data, using ggplot2
.
plot_infer_profiles( region = 1, obj_prof, obj_mean = NULL, obs = NULL, title = "Inferred profiles", x_axis = "genomic region", y_axis = "met level", x_labels = c("Upstream", "", "Centre", "", "Downstream"), ... )
region |
Genomic region number |
obj_prof |
Inferred profile, i.e. output from
|
obj_mean |
Inferred mean function, i.e. output from
|
obs |
Methylation data observations, if a list, will extract the
specific |
title |
Plot title |
x_axis |
x axis label |
y_axis |
x axis label |
x_labels |
x axis ticks labels |
... |
Additional parameters |
A ggplot2 object.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
plot_predicted_expr
,
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) # Create the plot g <- plot_infer_profiles(region = 16, obj_prof = prof, obs = encode_met$met)