Dependency analysis on package ggplot2

General information

CRAN link link
Package version3.3.6
Number of strong dependencies37
Number of all dependencies138
Number of parent packages13
Max heaviness from parent packages10
Total heaviness from parent packages28
Number of parent packages (including Suggests and Enhances)40
Max co-heaviness from parent packages ("tibble" and "scales")1

Dependency heatmap

In the following dependency heatmap, rows are the parent packages of ggplot2 and columns are the dependency packages that each parent package brings in. On the right side of the heatmap, there are three barplot annotations: 1. number of imported functions/S4 methods/S4 classes from parent packages; 2. number of dependency packages from each parent package; 3. heaviness of each parent package on ggplot2.

Adjust heatmap size:
Base packages Other packages Imports Suggests Enhances utils grDevices stats methods graphics grid splines tools lattice glue magrittr rlang R6 lifecycle crayon Matrix ellipsis fansi pillar pkgconfig vctrs cli utf8 colorspace nlme farver labeling munsell RColorBrewer viridisLite digest jsonlite yaml evaluate stringr stringi MASS htmltools base64enc fastmap withr tibble cpp11 highr xfun survival rstudioapi systemfonts sp foreign Rcpp htmlwidgets knitr brio callr desc pkgload praise processx ps waldo rprojroot diffobj rematch2 textshaping maps deldir RcppEigen SparseM MatrixModels mvtnorm TH.data sandwich codetools zoo classInt DBI s2 units e1071 class KernSmooth wk proxy rex httr lazyeval curl mime openssl askpass sys generics tidyselect purrr bslib jquerylib tinytex sass fs rappdirs testthat xml2 Formula ggplot2 latticeExtra cluster rpart nnet gtable gridExtra data.table htmlTable viridis isoband mgcv scales png jpeg checkmate backports 0 1 2 Imported methods 0 20 40 60 Required packages 0 10 20 30 Heaviness from parents grDevices grid stats digest glue gtable rlang isoband withr MASS mgcv scales tibble ggplot2movies RColorBrewer xml2 maps svglite ragg rpart mapproj lattice munsell nlme hexbin rgeos maptools interp knitr quantreg multcomp profvis sf covr dplyr rmarkdown testthat vdiffr Hmisc sp In total 37 packages are required directly or indirectly (138) when installing 'ggplot2' (3.3.6) Imports Suggests Enhances Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'ggplot2' Imported functions The whole namespace is imported Package is listed in 'Imports' but namespace is not imported


Dependency table

"Import" information is from the NAMESPACE file of ggplot2.

imports: number of imported functions/objects; importMethods: number of imported S4 methods; importClasses: number of imported S4 classes.

Required packages: number of strong dependency packages for each of the parent package (or in other words, number of dependency packages the parent package brings in).

Heaviness from parent on ggplot2: number of required packages that can be reduced if moving parent package to Suggests of ggplot2.

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on ggplot2
tibble Imports 1 0 0 15 10
scales Imports The whole set of functions/methods/classes from parent package is imported to the namespace of ggplot2. 15 8
mgcv Imports Parent package is listed in Imports of ggplot2 but no object from parent package is imported. 10 5
digest Imports Parent package is listed in Imports of ggplot2 but no object from parent package is imported. 1 1
gtable Imports The whole set of functions/methods/classes from parent package is imported to the namespace of ggplot2. 1 1
isoband Imports Parent package is listed in Imports of ggplot2 but no object from parent package is imported. 2 1
withr Imports Parent package is listed in Imports of ggplot2 but no object from parent package is imported. 3 1
MASS Imports Parent package is listed in Imports of ggplot2 but no object from parent package is imported. 5 1
grDevices Imports Parent package is listed in Imports of ggplot2 but no object from parent package is imported. 0 0
grid Imports The whole set of functions/methods/classes from parent package is imported to the namespace of ggplot2. 0 0
stats Imports 1 0 0 0 0
glue Imports 2 0 0 1 0
rlang Imports The whole set of functions/methods/classes from parent package is imported to the namespace of ggplot2. 1 0
Hmisc Suggests No object is imported into the namespace of ggplot2. 67 31
vdiffr Suggests No object is imported into the namespace of ggplot2. 42 22
rmarkdown Suggests No object is imported into the namespace of ggplot2. 27 19
testthat Suggests No object is imported into the namespace of ggplot2. 36 16
sf Suggests No object is imported into the namespace of ggplot2. 19 12
covr Suggests No object is imported into the namespace of ggplot2. 20 12
profvis Suggests No object is imported into the namespace of ggplot2. 17 10
knitr Suggests No object is imported into the namespace of ggplot2. 12 8
multcomp Suggests No object is imported into the namespace of ggplot2. 16 7
ragg Suggests No object is imported into the namespace of ggplot2. 3 4
interp Suggests No object is imported into the namespace of ggplot2. 11 4
quantreg Suggests No object is imported into the namespace of ggplot2. 13 4
dplyr Suggests No object is imported into the namespace of ggplot2. 20 4
svglite Suggests No object is imported into the namespace of ggplot2. 2 3
maptools Suggests No object is imported into the namespace of ggplot2. 9 3
mapproj Suggests No object is imported into the namespace of ggplot2. 4 2
rgeos Suggests No object is imported into the namespace of ggplot2. 8 2
ggplot2movies Suggests No object is imported into the namespace of ggplot2. 0 1
xml2 Suggests No object is imported into the namespace of ggplot2. 1 1
maps Suggests No object is imported into the namespace of ggplot2. 2 1
rpart Suggests No object is imported into the namespace of ggplot2. 3 1
hexbin Suggests No object is imported into the namespace of ggplot2. 7 1
RColorBrewer Suggests No object is imported into the namespace of ggplot2. 0 0
lattice Suggests No object is imported into the namespace of ggplot2. 5 0
munsell Suggests No object is imported into the namespace of ggplot2. 5 0
nlme Suggests No object is imported into the namespace of ggplot2. 6 0
sp Enhances No object is imported into the namespace of ggplot2. 7 1

Analysis was done with pkgndep.