Skip to content

Commit

Permalink
Remove plot.gtable and print.gtable (#697)
Browse files Browse the repository at this point in the history
* Remove plot.gtable and print.gtable

* Fix _pkgdown.yaml
  • Loading branch information
Puzzled-Face authored Oct 10, 2023
1 parent d6d5434 commit c9722fc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 40 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
1 change: 0 additions & 1 deletion _pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ reference:
- plot,Samples,ModelEff-method
- plot,Samples,ModelTox-method
- plot,SimulationsSummary,missing-method
- plot.gtable
- plotDualResponses
- plotGain
- probit
Expand Down
16 changes: 0 additions & 16 deletions man/plot.gtable.Rd

This file was deleted.

0 comments on commit c9722fc

Please sign in to comment.