# NOT RUN {
rootChars <- getRootsDir("core_426", diameter.classes = c(2.5, 10))
# }
# NOT RUN {
# plot using "ggplot" package after transforming with "reshape2" package
area.long <- reshape2::melt(rootChars, id.vars = c("depth"),
measure.vars = grep("Area", names(rootChars)))
ggplot2::ggplot(data = area.long, ggplot2::aes(y = -depth, x = value,
color = variable)) + ggplot2::geom_point() + ggplot2::theme_classic() +
ggplot2::xlab("root external surface area per slice (cm2)")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab