Learn R Programming

densitr (version 0.2)

trim_manually: Manually trim a list of density profiles

Description

This function will take a list of dp objects and interactively ask the user to assign starting/ending points manually for all density profiles in sequentially. Used as alternative to automatic trim functions. The plot title will display whether you are selecting start or end position. Use your mouse to select starting/ending points on the plot.

Usage

trim_manually(dp.list)

Arguments

dp.list

A list of dp objects.

Value

A list of trimmed density profiles.

See Also

dptrim, dptriml, manual_trim_detect

Examples

Run this code
# NOT RUN {
## load all dp files
# }
# NOT RUN {
dp.list <- dpload(dp.directory = system.file("extdata", package = "densitr"))
## manually trim the list
dp.trimmed <- trim_manually(dp.list)
# }

Run the code above in your browser using DataLab