Description Usage Arguments Value See Also Examples
Smooths the individual curves of a mtp
object.
1 | smooth_mtp(mtp, ...)
|
... |
parameter passed on to |
df_mtp |
A |
a mtp
object
smooth_mtp_list
for lists of mtp objects and fun_smooth
for individual curves
Other smoothing.functions: fun_smooth
,
smooth_mtp_list
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.