old_plot_fitted_profiles {BPRMeth} | R Documentation |
(DEPRECATED) plot_fitted_profiles
is a simple function
for plotting the methylation data across a give region, together with the
fit of the methylation profiles.
old_plot_fitted_profiles( region, X, fit_prof, fit_mean = NULL, title = "Gene promoter", ... )
region |
Promoter region number |
X |
Methylation data observations |
fit_prof |
Fitted profile |
fit_mean |
Fitted mean function |
title |
Title of the plot |
... |
Additional parameters |
The figure to be plotted in the device.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
# Fit methylation profiles using 3 RBFs obs <- meth_data y <- gex_data basis <- create_rbf_object(M = 3) out <- bpr_predict_wrap(x = obs, y = y, basis = basis, is_parallel = FALSE, opt_itnmax = 5) # Create the plot old_plot_fitted_profiles(region = 16, X = meth_data, fit_prof = out)