smooth_mtp: Smooths the individual curves of a 'mtp' object.

Description Usage Arguments Value See Also Examples

Description

Smooths the individual curves of a mtp object.

Usage

1

Arguments

...

parameter passed on to fun_smooth

df_mtp

A mtp object

Value

a mtp object

See Also

smooth_mtp_list for lists of mtp objects and fun_smooth for individual curves

Other smoothing.functions: fun_smooth, smooth_mtp_list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# df_mtp is data frame of mtp objects (in the .$mtp column) that comes with the package
smooth <- smooth_mtp(df_mtp$mtp[[1]])
plot_mtp(smooth)
plot_mtp(smooth, y_name = "fit")
plot_mtp(smooth, y_name = "resid")
plot_mtp(smooth, x_name = "value", y_name = "resid")
smooth <- smooth_mtp(df_mtp$mtp[[1]], no_points = 100)
plot_mtp(smooth, y_name = "resid")
smooth <- smooth_mtp(df_mtp$mtp[[1]], no_points = 100, fit_degree = 2)
mtp_plot(smooth, y_name = "resid")

JannikVindeloev/RAPr documentation built on May 7, 2019, 10:21 a.m.