Plot a contact matrix with optional secondary structure in the marginal regions.

# S3 method for cmap
plot(x, col=2, pch=16, main="Contact map", sub="",
xlim=NULL, ylim=NULL, xlab = "Residue index", ylab = xlab,
axes=TRUE, ann=par("ann"), sse=NULL, sse.type="classic",
sse.min.length=5, bot=TRUE, left=TRUE,
helix.col="gray20", sheet.col="gray80", sse.border=FALSE,
add=FALSE, ...)

## Arguments

x a numeric matrix of residue contacts as obtained from function cmap. color code or name, see par. plotting ‘character’, i.e., symbol to use. This can either be a single character or an integer code for one of a set of graphics symbols. See points. a main title for the plot, see also ‘title’. a sub-title for the plot. the x limits (x1,x2) of the plot. Note that x1 > x2 is allowed and leads to a reversed axis. the y limits of the plot. a label for the x axis, defaults to a description of ‘x’. a label for the y axis, defaults to a description of ‘y’. a logical value indicating whether both axes should be drawn on the plot. Use graphical parameter ‘xaxt’ or ‘yaxt’ to suppress just one of the axes. a logical value indicating whether the default annotation (title and x and y axis labels) should appear on the plot. secondary structure object as returned from dssp, stride or in certain cases read.pdb. single element character vector that determines the type of secondary structure annotation drawn. The following values are possible, ‘classic’ and ‘fancy’. See details and examples below. a single numeric value giving the length below which secondary structure elements will not be drawn. This is useful for the exclusion of short helix and strand regions that can often crowd these forms of plots. logical, if TRUE rectangles for each sse are drawn towards the left of the plotting region. logical, if TRUE rectangles for each sse are drawn towards the bottom of the plotting region. The colors for rectangles representing alpha helices. The colors for rectangles representing beta strands. The border color for all sse rectangles. logical, specifying if the contact map should be added to an already existing plot. Note that when ‘TRUE’ only points are plotted (no annotation). other graphical parameters.

## Details

This function is useful for plotting a residue-residue contact data for a given protein structure along with a schematic representation of major secondary structure elements.

Two forms of secondary structure annotation are available: so called ‘classic’ and ‘fancy’. The former draws marginal rectangles and has been available within Bio3D from version 0.1. The later draws more ‘fancy’ (and distracting) 3D like helices and arrowed strands.

## Value

Called for its effect.

## References

Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.

## Author

Lars Skjaerven, Barry Grant

## Note

Be sure to check the correspondence of your ‘sse’ object with the ‘x’ values being plotted as no internal checks are performed.

cmap, dm, plot.dmat, plot.default, plot.bio3d, dssp, stride

## Examples