mixedcirc_fit_plot: Plots circadian rhythm

View source: R/mixedcirc_fit_plot.R

mixedcirc_fit_plotR Documentation

Plots circadian rhythm

Description

This functions plots circadian rhythm fitted using mixedcirc_detect function.

Usage

mixedcirc_fit_plot(
  x,
  period = 24,
  min_time = NULL,
  max_time = NULL,
  plot_title = NULL,
  plot_points = TRUE,
  plot_smooth = FALSE,
  plot_trend = TRUE,
  xlab = "time",
  ylab = "Expression"
)

Arguments

x

A class of mixedcirc_fit

period

The rhythm period. Default: 24

min_time

Minimum time span to do the prediction. If NULL, it will be taken from the fit. Default: NULL

max_time

Maximum time span to do the prediction. If NULL, it will be taken from the fit. Default: NULL

plot_title

Title of the plot.

plot_points

whether to plot the individual points or not. Default TRUE

plot_smooth

Whether to plot smoothing line or not. Default: FALSE

plot_trend

Whether to plot trend lines or not. Default: TRUE

xlab

Label on the x-axis

ylab

Label on the y-axis

y

Not used

Details

In case of RRBS, the data is assumed to be log2. The M-values are calculated as Mathylated-Unmethylated

Value

A ggplot object.

Examples

data("circa_data")

results<-mixedcirc_detect(data_input = circa_data$data_matrix,
time = circa_data$time,group = circa_data$group,id = circa_data$id,period = 24,verbose = TRUE)
plot(results[[1]])

PayamEmami/mixedcirc documentation built on Jan. 15, 2025, 5:36 p.m.