correct_failures | R Documentation |
This function will take a list of trimmed dp objects (a result of dptriml or dptriml_s function) and interactively ask the user to assign starting/ending points manually. Follow-up to automatic trim functions or to be used manually, will display a plot with the density profiles for each failure in trim detection sequentially. The plot title will display whether you are selection start or end positions. Use your mouse to select starting/ending point on the plot, your selection will then be displayed on the plot. Will return a complete list, both with the non-failed automatically trimmed dp objects and those corrected manually. The automatic trim functions should be called with the option "rreport = TRUE", which embeds a trimming report when returning the list of trimmed dp objects.
correct_failures(dp.trimmed)
dp.trimmed |
A list of dp objects, trimmed, with the report embedded ("rreport = TRUE"). |
A list of trimmed profiles, including both automatic and manual trimming.
dptrim, dptriml, manual_trim_detect
## load all dp files dp.list <- dpload(dp.directory = system.file("extdata", package = "densitr")) ## trim the list dp.trimmed <- dptriml(dp.list, rreport = TRUE) ## manually correct the failures dp.corrected <- correct_failures(dp.trimmed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.