| plot_dependencies {deepdep} | R Documentation |
Main plot function for a deepdep object
Description
Visualize dependency data from a deepdep object using
ggplot2 and ggraph packages. Several tree-like layouts are available.
Usage
plot_dependencies(
x,
type = "circular",
same_level = FALSE,
reverse = FALSE,
label_percentage = 1,
show_version = FALSE,
show_downloads = FALSE,
show_stamp = TRUE,
declutter = FALSE,
...
)
## Default S3 method:
plot_dependencies(
x,
type = "circular",
same_level = FALSE,
reverse = FALSE,
label_percentage = 1,
show_version = FALSE,
show_downloads = FALSE,
show_stamp = TRUE,
declutter = FALSE,
...
)
## S3 method for class 'character'
plot_dependencies(
x,
type = "circular",
same_level = FALSE,
reverse = FALSE,
label_percentage = 1,
show_version = FALSE,
show_downloads = FALSE,
show_stamp = TRUE,
declutter = FALSE,
...
)
## S3 method for class 'deepdep'
plot_dependencies(
x,
type = "circular",
same_level = FALSE,
reverse = FALSE,
label_percentage = 1,
show_version = FALSE,
show_downloads = FALSE,
show_stamp = TRUE,
declutter = FALSE,
...
)
Arguments
x |
A |
type |
A |
same_level |
A |
reverse |
A |
label_percentage |
A |
show_version |
A |
show_downloads |
A |
show_stamp |
A |
declutter |
A |
... |
Other arguments passed to the |
Value
A ggplot2, gg, ggraph, deepdep_plot class object.
Examples
library(deepdep)
#:# use local packages
plot_dependencies("deepdep", depth = 2, local = TRUE)
dd <- deepdep("ggplot2")
plot_dependencies(dd, "tree")
dd2 <- deepdep("ggplot2", depth = 2)
plot_dependencies(dd2, "circular")
#:# show grand_total download count
plot_dependencies("shiny", show_downloads = TRUE)