plot_fitted_profiles: Plot the fit of methylation profiles across a region

Description Usage Arguments Value Author(s) See Also Examples

Description

plot_fitted_profiles is a simple function for plotting the methylation data across a give region, together with the fit of the methylation profiles.

Usage

1
2
plot_fitted_profiles(region, X, fit_prof, fit_mean = NULL,
  title = "Gene promoter", up_label = "-7kb", down_label = "+7kb", ...)

Arguments

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

Value

The figure to be plotted in the device.

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

See Also

plot_cluster_prof, plot_scatter_gex, boxplot_cluster_gex

Examples

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)

andreaskapou/BPRMeth-devel documentation built on May 12, 2019, 3:32 a.m.