plot_position_frequency: Plot position frequency

View source: R/plot_position_frequency.R

plot_position_frequencyR Documentation

Plot position frequency

Description

Plots the frequency of coverage of protein sequence.

Usage

plot_position_frequency(
  dat,
  protein = dat[["Protein"]][1],
  chosen_state = dat[["State"]][1]
)

Arguments

dat

data as imported by the read_hdx function

protein

protein to be included in plot

chosen_state

sequence states to be included in plot

Details

The function plot_position_frequency plots a histogram of the coverage frequency based on experimental data. The aim of this plot is to see how many times each position of the sequence was covered (by different peptides).

Value

a ggplot object.

See Also

read_hdx plot_coverage

Examples

# load example data
dat <- read_hdx(system.file(package = "HaDeX", 
                            "HaDeX/data/KD_180110_CD160_HVEM.csv"))
                            
# function call with default parameters
plot_position_frequency(dat)

# function call with explicit parameters
plot_position_frequency(dat, chosen_state = "CD160_HVEM")


michbur/HaDeX documentation built on March 29, 2022, 5:46 p.m.