Description Usage Arguments Value Author(s) See Also Examples
View source: R/visualization.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 | plot_infer_profiles(
  region = 1,
  obj_prof,
  obj_mean = NULL,
  obs = NULL,
  title = "Inferred profiles",
  ...
)
 | 
| region | Genomic region number | 
| obj_prof | Inferred profile, i.e. output from
 | 
| obj_mean | Inferred mean function, i.e. output from
 | 
| obs | a list result of  | 
| title | Plot title | 
| ... | Additional parameters | 
A ggplot2 object.
Hongen Kang geneprophet@163.com
infer_profiles_vb, create_rbf_object, create_region_object
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run: 
# Fit methylation profiles using 8 RBFs and 0 RBF
human_basis_profile <- create_rbf_object(M = 8)
human_basis_mean <- create_rbf_object(M = 0)
human_obj <- create_region_object(human_met, human_region)
human_fit_profiles <- infer_profiles_vb(X = human_obj$met, model = "binomial",
   basis = human_basis_profile, is_parallel = TRUE, vb_max_iter = 100)
human_fit_mean <- infer_profiles_vb(X = human_obj$met, model = "binomial",
   basis = human_basis_mean, is_parallel = TRUE, vb_max_iter = 100)
p <- plot_infer_profiles(region = 44, obj_prof = human_fit_profiles,obj_mean = human_fit_mean, 
   obs = human_obj, title = paste0("Gene ID ",human_obj$anno$id[44]))
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.