old_plot_fitted_profiles {BPRMeth} | R Documentation

## (DEPRECATED) Plot the fit of methylation profiles across a region

### Description

(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.

### Usage

    old_plot_fitted_profiles(region, X, fit_prof, fit_mean = NULL,
      title = "Gene promoter", ...)

### Arguments

`region` | Promoter region number
`X` | Methylation data observations
`fit_prof` | Fitted profile
`fit_mean` | Fitted mean function
`title` | Title of the plot
`...` | Additional parameters

### Value

The figure to be plotted in the device.

### Author(s)

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

### See Also

`old_plot_cluster_prof`

### Examples

    # 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)

[Package BPRMeth version 1.12.0 Index]