Learn R Programming

MDplot (version 0.3.1)

ramachandran: Ramachandran plot for two dihedral angles

Description

This plotting function divides a full rotation (360 degrees) into x- and y- bins and colors them according to the number of angle pairs that are provided in the input, a so-called Ramachandran plot.

Usage

ramachandran( dihedrals, xBins = 150, yBins = 150, heatFun = "norm", structureAreas = c(), plotType = "sparse", printLegend = FALSE, heatUnits = NA, plotContour = FALSE, barePlot = FALSE, ... )

Arguments

dihedrals
Matrix with angles (two columns).
xBins
Number of bins (default: 150) used to plot (on the x-axis).
yBins
Number of bins (default: 150) used to plot (on the y-axis).
heatFun
Function selector for calculation of the colour, possible are either:
  • "norm" (default) for linear calculation, or
  • "log" for logarithmic calculation.

structureAreas
List of secondary structure areas, by default there are no regions specified.
plotType
Type of plot to be used, either "sparse" (default) or "fancy". The latter is a 3D representation.
printLegend
Boolean (default: false) specifying, whether a heat lengend is to be plotted or not.
heatUnits
String, containing a the unit of heat.
plotContour
Boolean (default: false) specifying, whether a contour should be plotted or no.
barePlot
Boolean, indicating whether the plot is to be made without any additional information.
...
Additional arguments (ellipsis).

Examples

Run this code
## Not run: 
# # load table and return it into plotting function "MDplot::ramachandran()"
# # see "extdata/ramachandran_example.txt.gz" for format information
# ramachandran( load_ramachandran( system.file( "extdata/ramachandran_example.txt.gz",
#                                               package = "MDplot" ) ) )
# ## End(Not run)

Run the code above in your browser using DataLab