facet_msa: segment MSA

View source: R/facet_msa.R

facet_msaR Documentation

segment MSA

Description

The MSA would be plot in a field that you set.

Usage

facet_msa(field)

Arguments

field

a numeric vector of the field size.

Value

ggplot layers

Author(s)

Lang Zhou

Examples

library(ggplot2)
f <- system.file("extdata/sample.fasta", package="ggmsa")
# 2 fields
ggmsa(f, end = 120, font = NULL, color="Chemistry_AA") + 
  facet_msa(field = 60)
# 3 fields
ggmsa(f, end = 120, font = NULL,  color="Chemistry_AA") + 
  facet_msa(field = 40)

YuLab-SMU/ggmsa documentation built on Aug. 26, 2022, 1:48 a.m.