Learn R Programming

PopPsiSeqR (version 1.0.0)

windowedFrequencyShift.plotter: Data displayer

Description

Data displayer

Usage

windowedFrequencyShift.plotter(
  windowed_shift,
  selected_parent = "sim",
  backcrossed_parent = "sec",
  contigs = c("chr2L", "chr2R", "chr3L", "chr3R"),
  main_title = "popPsiSeq results",
  ref_gen = "droSim1",
  primary_aesthetic = ggplot2::aes(),
  envelope_aesthetic = ggplot2::aes(),
  ancestral_aesthetic = ggplot2::aes()
)

Value

a ggbio plot object

Arguments

windowed_shift

GRanges containing windowed data (as loaded by import.smvshft)

selected_parent

Name of the selected-for population

backcrossed_parent

Name of the backcrossed-too population

contigs

What contigs to display

main_title

What to call the plot

ref_gen

Name of the reference genome

primary_aesthetic

Primary aesthetic

envelope_aesthetic

envelope aesthetic

ancestral_aesthetic

ancestral aesthetic

Examples

Run this code
# \donttest{
windowed_shifts.filename <- system.file("extdata",
"windowed_shifts.example_data.bed", package = "PopPsiSeqR")
windowed_shifts.bg <- import.smvshift(windowed_shifts.filename)
windowedFrequencyShift.plotter(windowed_shifts.bg)
# }

Run the code above in your browser using DataLab