library(ggplot2)
# data
data('ARG_TRE', package = 'sapfluxnetr')
# plotting directly
sfn_plot(ARG_TRE, type = 'sapf')
# this could be noisy, you can facet by "Tree" (for sapflow) or by
# "Variable" (for environmental data):
sfn_plot(ARG_TRE, type = 'sapf') +
facet_wrap(~ Tree)
sfn_plot(ARG_TRE, type = 'env') +
facet_wrap(~ Variable, scales = 'free_y')
# saving and modifying:
env_plot <- sfn_plot(ARG_TRE, type = 'env', solar = FALSE) +
facet_wrap(~ Variable, scales = 'free_y')
env_plot + labs(title = 'Environmental variables facet plot')
# formula
sfn_plot(ARG_TRE, formula_env = ~ vpd)
Run the code above in your browser using DataLab