Description Usage Arguments Value Author(s) See Also Examples
plot_fitted_profiles
is a simple function for plotting the methylation
data across a give region, together with the fit of the methylation profiles.
1 2 | plot_fitted_profiles(region, X, fit_prof, fit_mean = NULL,
title = "Gene promoter", up_label = "-7kb", down_label = "+7kb", ...)
|
region |
Promoter region number |
X |
Methylation data observations |
fit_prof |
Fitted profile |
fit_mean |
Fitted mean function |
title |
Title of the plot |
up_label |
Label for upstream region from TSS |
down_label |
Label for downstream region from TSS |
... |
Additional parameters |
The figure to be plotted in the device.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
plot_cluster_prof
, plot_scatter_gex
,
boxplot_cluster_gex
1 2 3 4 5 6 7 8 9 | # Fit methylation profiles using 8 RBFs
obs <- meth_data
y <- gex_data
basis <- create_rbf_object(M = 8)
out <- bpr_predict_wrap(x = obs, y = y, basis = basis,
is_parallel = FALSE, opt_itnmax = 10)
# Create the plot
plot_fitted_profiles(region = 16, X = meth_data, fit_prof = out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.