Description Usage Arguments Value Examples
View source: R/SizeOnly_Database.R
Reduce the calibrated SzeExtractR database by removing all calibration ROIs
1 | SizeOnly_Database(datacal)
|
datacal |
An object of class dataframe as output directly from SizeExtractR::Calibrate_Database() |
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.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.