Skip to contents

This function plots the spatial frequency of a given motif across genomic positions.

Usage

plot_motif_spatial_freq(
  spatial_freqs,
  motif,
  smooth = 10,
  plot_atac = FALSE,
  linewidth = 1
)

Arguments

spatial_freqs

A data frame containing the spatial frequency of motifs and/or ATAC-seq peaks. Output of compute_traj_model_spatial_freq.

motif

A string specifying the motif to plot.

smooth

An integer specifying the window size for smoothing the frequency values.

plot_atac

A logical indicating whether to plot the ATAC-seq frequency instead of the motif frequency.

linewidth

The width of the line in the plot.

Value

A ggplot object showing the spatial frequency of the given motif.