View source: R/plot_functions.R
plot_xvg | R Documentation |
plot xvg data using ggplot2
plot_xvg(
xvg_data,
merge = FALSE,
title = NULL,
subtitle = NULL,
use_color_scale = NULL,
...
)
xvg_data |
xvg data object returned by read_xvg |
merge |
logical; if TRUE and multiple datasets provided, merge them (default: FALSE) |
title |
chart title (default uses xvg file's title) |
subtitle |
chart subtitle (default uses xvg file's subtitle) |
use_color_scale |
custom color scale function (e.g., ggsci::scale_color_bmj) to override default colors |
... |
additional parameters passed to ggplot2::geom_line |
a ggplot2 object
library(xvm)
rmsd_file_path <- system.file("extdata/rmsd.xvg", package = "xvm")
rmsd_data <- read_xvg(rmsd_file_path)
plot_xvg(rmsd_data) # plot the xvg data using plot_xvg() function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.