Description Usage Arguments Value Examples
Extracts some parameters from an afmexperiment for an easy further analysis.
1 | afmExtract(afmexperiment, params = list("YM", "AE", "ED"), opt.param = NULL)
|
afmexperiment |
Data of afmexperiment class. |
params |
List of parameters to extract from the data. |
opt.param |
Optional parameter or factor in the params field of the afmdata list to add to the data extraction. |
A data frame with the name of the curve and the corresponding values of the parameters extacted.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
require(dplyr) # Not really necessary
# Load the data
data(batchExperiment)
# Process the afmexperiment
data <- afmContactPoint(batchExperiment, width = 50, mul1 = 1, mul2 = 10)
data <- afmDetachPoint(data, width = 50, mul1 = 1, mul2 = 10)
data <- afmBaselineCorrection(data)
data <- afmZeroPointSlope(data)
data <- afmIndentation(data)
data <- afmYoungModulus(data, thickness = 2e-7, params = list(alpha = 22))
data <- afmExpDecay(data, plt = FALSE)
data <- afmAdhesionEnergy(data, mul = 7)
# Extract the values of the parameters obtained in the analysis
afmExpParams <- afmExtract(data, opt.param = "type")
# Plotting the Young's Modulus
afmExpParams[[1]] %>% ggplot(aes(x = type, y = YM)) + geom_boxplot()
ylab("Young's Modulus (Pa)")
## End(Not run)
|
Loading required package: ggplot2
Loading required package: dplyr
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
[1] "Processing curve: force-save-2016.07.27-16.56.36.140.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.00.672.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.25.194.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.49.692.txt"
[1] "Processing curve: force-save-2016.07.27-16.58.14.214.txt"
[1] "Processing curve: force-save-2016.07.27-17.18.31.675.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.06.862.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.47.899.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.18.026.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.47.381.txt"
[1] "Processing curve: force-save-2016.07.29-19.11.17.314.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341_001.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341.txt"
[1] "Processing curve: force-save-2016.07.29-19.14.07.857.txt"
[1] "Processing curve: force-save-2016.07.27-16.56.36.140.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.00.672.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.25.194.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.49.692.txt"
[1] "Processing curve: force-save-2016.07.27-16.58.14.214.txt"
[1] "Processing curve: force-save-2016.07.27-17.18.31.675.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.06.862.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.47.899.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.18.026.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.47.381.txt"
[1] "Processing curve: force-save-2016.07.29-19.11.17.314.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341_001.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341.txt"
[1] "Processing curve: force-save-2016.07.29-19.14.07.857.txt"
[1] "Processing curve: force-save-2016.07.27-16.56.36.140.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.00.672.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.25.194.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.49.692.txt"
[1] "Processing curve: force-save-2016.07.27-16.58.14.214.txt"
[1] "Processing curve: force-save-2016.07.27-17.18.31.675.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.06.862.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.47.899.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.18.026.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.47.381.txt"
[1] "Processing curve: force-save-2016.07.29-19.11.17.314.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341_001.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341.txt"
[1] "Processing curve: force-save-2016.07.29-19.14.07.857.txt"
[1] "Processing curve: force-save-2016.07.27-16.56.36.140.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.00.672.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.25.194.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.49.692.txt"
[1] "Processing curve: force-save-2016.07.27-16.58.14.214.txt"
[1] "Processing curve: force-save-2016.07.27-17.18.31.675.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.06.862.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.47.899.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.18.026.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.47.381.txt"
[1] "Processing curve: force-save-2016.07.29-19.11.17.314.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341_001.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341.txt"
[1] "Processing curve: force-save-2016.07.29-19.14.07.857.txt"
[1] "Processing curve: force-save-2016.07.27-16.56.36.140.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.00.672.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.25.194.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.49.692.txt"
[1] "Processing curve: force-save-2016.07.27-16.58.14.214.txt"
[1] "Processing curve: force-save-2016.07.27-17.18.31.675.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.06.862.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.47.899.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.18.026.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.47.381.txt"
[1] "Processing curve: force-save-2016.07.29-19.11.17.314.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341_001.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341.txt"
[1] "Processing curve: force-save-2016.07.29-19.14.07.857.txt"
There were 15 warnings (use warnings() to see them)
[1] "Processing curve: force-save-2016.07.27-16.56.36.140.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.00.672.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.25.194.txt"
[1] "Processing curve: force-save-2016.07.27-16.57.49.692.txt"
[1] "Processing curve: force-save-2016.07.27-16.58.14.214.txt"
[1] "Processing curve: force-save-2016.07.27-17.18.31.675.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.06.862.txt"
[1] "Processing curve: force-save-2016.07.29-18.47.47.899.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.18.026.txt"
[1] "Processing curve: force-save-2016.07.29-18.50.47.381.txt"
[1] "Processing curve: force-save-2016.07.29-19.11.17.314.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341_001.txt"
[1] "Processing curve: force-save-2016.07.29-19.12.26.341.txt"
[1] "Processing curve: force-save-2016.07.29-19.14.07.857.txt"
$y
[1] "Young's Modulus (Pa)"
attr(,"class")
[1] "labels"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.