Skip to content

Commit

Permalink
Dropped dependency for Cairo
Browse files Browse the repository at this point in the history
  • Loading branch information
noriakis committed Feb 5, 2024
1 parent cd3c89c commit c9cff32
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Depends:
R (>= 4.3.0), ggplot2, ggraph, XML, igraph, tidygraph
Imports: BiocFileCache, GetoptLong, data.table, dplyr,
magick, patchwork, shadowtext, stringr, tibble,
org.Hs.eg.db, methods, utils, stats, AnnotationDbi, grDevices, Cairo,
org.Hs.eg.db, methods, utils, stats, AnnotationDbi, grDevices,
gtable
Suggests:
knitr,
Expand All @@ -19,7 +19,7 @@ Suggests:
rmarkdown,
BiocStyle,
testthat (>= 3.0.0)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.0
biocViews: Pathways, DataImport, KEGG
VignetteBuilder: knitr
URL: https://github.com/noriakis/ggkegg
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export(rawMap)
export(rawValue)
export(return_line_compounds)
import(BiocFileCache)
import(Cairo)
import(ggplot2)
import(ggraph)
import(gtable)
Expand Down
1 change: 0 additions & 1 deletion R/ggkegg.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#' g + geom_node_rect()
#' @import ggraph
#' @import ggplot2
#' @import Cairo
#' @importFrom tidygraph as_tbl_graph
#' @importFrom igraph induced.subgraph delete_vertex_attr
#' @importFrom methods new
Expand Down
2 changes: 1 addition & 1 deletion vignettes/usage_of_ggkegg.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ We can use `overlay_raw_map` to overlay the raw KEGG images on the created `ggra
The node and text can be directly customized by using various geoms, effects such as `ggfx`, and scaling functions.
The code below creates nodes using default parsed background color and just overlay the image.

```{r example_raw, message=FALSE, warning=FALSE, eval=TRUE, dev="CairoPNG"}
```{r example_raw, message=FALSE, warning=FALSE, eval=TRUE}
graph |>
mutate(degree=centrality_degree(mode="all")) |>
ggraph(graph, layout="manual", x=x, y=y)+
Expand Down

0 comments on commit c9cff32

Please sign in to comment.