aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2021-11-19 00:22:03 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2021-11-19 00:22:03 +0100
commit79123acfdd9a9b905a5b177e2b7aa0d604e52267 (patch)
tree010dbecd40bddb46aafb0bc6c8da8a1ced08532a /R
parent0056584e5168df75bca159ddf3469aa07457b77d (diff)
Add plot example, update static docs
Diffstat (limited to 'R')
-rw-r--r--R/chent.R6
1 files changed, 6 insertions, 0 deletions
diff --git a/R/chent.R b/R/chent.R
index d988e97..6983561 100644
--- a/R/chent.R
+++ b/R/chent.R
@@ -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)

Contact - Imprint