diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2021-11-19 00:22:03 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2021-11-19 00:22:03 +0100 |
commit | 79123acfdd9a9b905a5b177e2b7aa0d604e52267 (patch) | |
tree | 010dbecd40bddb46aafb0bc6c8da8a1ced08532a /R | |
parent | 0056584e5168df75bca159ddf3469aa07457b77d (diff) |
Add plot example, update static docs
Diffstat (limited to 'R')
-rw-r--r-- | R/chent.R | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -471,6 +471,12 @@ draw_svg.chent = function(x, width = 300, height = 150, #' @param x The chent object to be plotted #' @param ... Further arguments passed to \code{\link{grid.picture}} #' @export +#' @examples +#' caffeine <- chent$new("caffeine") +#' print(caffeine) +#' if (!is.null(caffeine$Picture)) { +#' plot(caffeine) +#' } plot.chent = function(x, ...) { if (is.null(x$Picture)) stop("No Picture object in chent, was RDKit available during creation?") grid.picture(x$Picture) |