SizeOnly_Database: Reduce the calibrated SzeExtractR database by removing all...

Description Usage Arguments Value Examples

View source: R/SizeOnly_Database.R

Description

Reduce the calibrated SzeExtractR database by removing all calibration ROIs

Usage

1

Arguments

datacal

An object of class dataframe as output directly from SizeExtractR::Calibrate_Database()

Value

Returns a calibrated SizeExtractR database (i.e., dataframe object) without points and lengths used in calibrations. THis is helpful when it comes to indexing the dataset for plotting using ggplot or other packages.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# load in the output of Add_ROILabelVars
data(Database.cal)

# Run the function
Database.SizeOnly = SizeOnly_Database(Database.cal)

# Histogram of Egg Sizes - Note the indexing is not needed for the latter dataset
par(mfrow = c(1,2))

# Full Dataset
ind=which(Database.cal$ROI.Type == "e")
hist(Database.cal$Area[ind], xlab = bquote(Egg~Area~(cm^2)), main = "Full Dataset")

# SizeOnly Dataset
hist(Database.SizeOnly$Area, xlab = bquote(Egg~Area~(cm^2)), main = "Size Only Dataset")

liamlachs/SizeExtractR documentation built on Feb. 13, 2022, 9:46 p.m.