Description Usage Arguments Value Author(s) See Also Examples
View source: R/plotting_functions.R
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.
1 2 3 4 5 6 7 8 9 10 11  | 
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
1 2 3 4 5 6  | # 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.