Learn R Programming

baseq (version 0.2.0)

plot_hydrophobicity: Plot Hydrophobicity

Description

Generates a sliding window plot of protein hydrophobicity using the Kyte-Doolittle scale.

Usage

plot_hydrophobicity(s, window = 9)

Value

A ggplot object

Arguments

s

A character string containing the protein sequence

window

Integer window size (default: 9)

Examples

Run this code
prot <- "MKFLVLALAL"
plot_hydrophobicity(prot, window = 3)

Run the code above in your browser using DataLab