Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove plot.gtable and print.gtable #697

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.