Skip to content

Commit

Permalink
remove ggraph example
Browse files Browse the repository at this point in the history
since it is producing warnings: thomasp85/ggraph#333
  • Loading branch information
IndrajeetPatil committed Feb 9, 2023
1 parent f452f44 commit d27dd41
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 44 deletions.
6 changes: 3 additions & 3 deletions R/data_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#' chains = 2, iter = 200, refresh = 0
#' ))
#'
#' x <- rope(model)
#' x <- rope(model, verbose = FALSE)
#' plot(x)
#'
#' x <- hdi(model)
Expand All @@ -71,7 +71,7 @@
#' x <- p_direction(data)
#' plot(x)
#'
#' x <- p_direction(model)
#' x <- p_direction(model, verbose = FALSE)
#' plot(x)
#'
#' model <<- suppressWarnings(stan_glm(
Expand All @@ -81,7 +81,7 @@
#' refresh = 0,
#' data = mtcars
#' ))
#' x <- equivalence_test(model)
#' x <- equivalence_test(model, verbose = FALSE)
#' plot(x)
#' @export
data_plot <- function(x, data = NULL, ...) {
Expand Down
19 changes: 0 additions & 19 deletions R/geom_from_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,25 +111,6 @@
#' geom_from_list(list(aes = list(x = "Sepal.Length"), geom = "ggside::geom_xsidedensity")) +
#' geom_from_list(list(geom = "ggside::scale_xsidey_continuous", breaks = NULL))
#'
#' # Example 6 (ggraph) --------------------------
#'
#' @examplesIf require("tidygraph") && require("ggraph")
#' library(tidygraph)
#' library(ggraph)
#'
#' # Prepare graph
#' nodes <- data.frame(name = c("Death", "Famine", "War", "Conquest"))
#' edges <- data.frame(
#' from = c(1, 1, 1, 2, 3, 3, 4, 4, 4),
#' to = c(2, 3, 4, 1, 1, 2, 1, 2, 3)
#' )
#' data <- tidygraph::tbl_graph(nodes = nodes, edges = edges)
#'
#' ggraph(data, layout = "kk") +
#' geom_from_list(list(geom = "ggraph::geom_edge_arc")) +
#' geom_from_list(list(geom = "ggraph::geom_node_point", size = 10)) +
#' geom_from_list(list(geom = "ggraph::geom_node_label", aes = list(label = "name")))
#'
#' @export
geom_from_list <- function(x, ...) {
# Additional parameters ------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions man/data_plot.Rd

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

19 changes: 0 additions & 19 deletions man/geom_from_list.Rd

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

0 comments on commit d27dd41

Please sign in to comment.