export_plots: Draw and Export plots from the analysis

View source: R/plot_figures.R

export_plotsR Documentation

Draw and Export plots from the analysis

Description

Draw and Export plots from the analysis

Usage

export_plots(filename = "processed_and_analyzed_data.pdf", processed_data = NULL,
rythm_analysis_data = NULL, autocorrelation = TRUE,
lomb_scargle = TRUE, cosinor_fit = c("lomb_scargle", "autocorrelation"),
dir_choose_gui = TRUE)

Arguments

filename

A charater string to name the ".pdf" file outputted. Default = "processed_and_analyzed_data".

processed_data

data.frame returned from the process_timeseries or multivariate_process_timeseries functions.

rythm_analysis_data

data.frame returned from the rythm_analysis_by_window and multivariate_rythm_analysis functions.

autocorrelation

If TRUE (default) plots autocorrelation. FALSE does not plot autocorrelation.

lomb_scargle

If TRUE (default) plots lomb scargle periodogram. FALSE does not plot periodogram.

cosinor_fit

Method to fit the COSINOR to the data. Either "lomb_scargle" (default) or "autocorrelation".

dir_choose_gui

If TRUE (default) a GUI will help select the folder in which to save the data and plots. If FALSE, everything will be saved in the current directory.

Examples

export_plots(processed_data = df_processed, rythm_analysis_data = df_analysis)


edpclau/circadian-dynamics documentation built on Aug. 25, 2023, 12:18 p.m.