Skip to content

Commit

Permalink
Deprecate ggnet function in favor of ggnet2
Browse files Browse the repository at this point in the history
  • Loading branch information
92amartins committed Apr 24, 2024
1 parent 17bbdc4 commit 7522436
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/ggnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ if (getRversion() >= "2.15.1") {

#' Network plot
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' Function for plotting network objects using \pkg{ggplot2}, now replaced by the
#' \code{\link{ggnet2}} function, which provides additional control over
#' plotting parameters. Please visit \url{https://github.com/briatte/ggnet} for
Expand Down Expand Up @@ -135,6 +138,7 @@ if (getRversion() >= "2.15.1") {
#' @importFrom stats quantile na.omit
#' @importFrom utils head installed.packages
#' @importFrom grDevices gray.colors
#' @keywords internal
#' @examples
#' # Small function to display plots only if it's interactive
#' p_ <- GGally::print_if_interactive
Expand Down Expand Up @@ -206,6 +210,7 @@ ggnet <- function(
trim.labels = deprecated(),
...
) {
lifecycle::deprecate_soft("2.2.2", "ggnet()", "ggnet2()")

# -- packages ----------------------------------------------------------------

Expand Down
3 changes: 3 additions & 0 deletions man/ggnet.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7522436

Please sign in to comment.