draw_canvas: Create ggplot2 object with protein chains from feature...

Description Usage Arguments Value Examples

View source: R/geoms.R

Description

draw_canvas uses the dataframe containing the protein features to creates the basic plot element by determining the length of the longest protein and the number of proteins to plot.

Usage

1

Arguments

data

Dataframe of one or more rows with the following column names: 'type', 'description', 'begin', 'end', 'length', 'accession', 'entryName', 'taxid', 'order'. Must contain a minimum of one "CHAIN" as data$type.

Value

A ggplot2 object either in the plot window or as an object.

Examples

1
2
3
# draws a blank canvas of the correct size
data("five_rel_data")
draw_canvas(five_rel_data)

drawProteins documentation built on Nov. 8, 2020, 5:25 p.m.