Learn R Programming

Peptides (version 1.1.2)

plot.xvg: Plot time series from GROMACS XVG files

Description

Read and plot output data from a XVG format file.

Usage

"plot"(x, ...)

Arguments

x
a .XVG output file from GROMACS.
...
ignored

Details

XVG is the default format file from GROMACS molecular dynamics package, contains data formatted for import into the Grace 2-D plotting program.

References

Pronk, S., Pall, S., Schulz, R., Larsson, P., Bjelkmar, P., Apostolov, R., ... & Lindahl, E. (2013). GROMACS 4.5: a high-throughput and highly parallel open source molecular simulation toolkit. Bioinformatics, 29 (7), 845-854.

Examples

Run this code
# PLOT ONE FILE
file <- system.file("xvg-files/epot.xvg",package="Peptides")
plot.xvg(file)

# PLOTTING MULTIPLE FILES
POPG <- system.file("xvg-files/POPG.xvg",package="Peptides")
POPE <- system.file("xvg-files/POPE.xvg",package="Peptides")
POPC <- system.file("xvg-files/POPC.xvg",package="Peptides")
par(mfcol=c(1,3))
plot.xvg(POPG)
plot.xvg(POPE)
plot.xvg(POPC)

Run the code above in your browser using DataLab