plot_dependencies | R Documentation |
deepdep
objectVisualize dependency data from a deepdep
object using
ggplot2
and ggraph
packages. Several tree-like layouts are available.
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, ... )
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 |
A ggplot2, gg, ggraph, deepdep_plot
class object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.