Skip to content

Commit

Permalink
Remove plot.gtable and print.gtable
Browse files Browse the repository at this point in the history
  • Loading branch information
Puzzled-Face committed Oct 9, 2023
1 parent d6d5434 commit 3a22f60
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Generated by roxygen2: do not edit by hand

S3method(plot,gtable)
S3method(print,gtable)
export("%>%")
export("%~%")
export(.CohortSizeConst)
Expand Down Expand Up @@ -524,7 +522,6 @@ importFrom(graphics,lines)
importFrom(graphics,matlines)
importFrom(graphics,matplot)
importFrom(graphics,plot)
importFrom(grid,grid.draw)
importFrom(grid,grid.newpage)
importFrom(grid,pushViewport)
importFrom(grid,viewport)
Expand Down
20 changes: 0 additions & 20 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,26 +241,6 @@ crmPackHelp <- function() {
utils::help(package = "crmPack", help_type = "html")
}


## this is the new version, working on the gtable objects:
##' Plots gtable objects
##'
##' @method plot gtable
##' @param x the gtable object
##' @param \dots additional parameters for \code{\link[grid]{grid.draw}}
##'
##' @importFrom grid grid.draw
##' @export
plot.gtable <- function(x, ...) {
grid::grid.draw(x, ...)
}

##' @export
print.gtable <- function(x, ...) {
plot.gtable(x, ...)
}


#' Multiple plot function
#'
#' ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects).
Expand Down
16 changes: 0 additions & 16 deletions man/plot.gtable.Rd

This file was deleted.

0 comments on commit 3a22f60

Please sign in to comment.