I would like to visualize how functions in my own R package depend on each other. For this purpose I use the `foodweb()` function from the `mvbutils` package.

I can get the right functional dependencies out without a problem but the plot looks a bit messy, with lines crossing each other and function names not aligned vertically or horizontally.

Is there a way to control the layout of the plot similar to the way this works in the `igraph` package?

### Example

```
dirPath <- "~/dev/stackoverflow/46910042"
setwd(dirPath)

## Download example Package
urlPackage <- "https://github.com/kbroman/qtlcharts/archive/master.zip"
download.file(urlPackage, destfile = "master.zip")
unzip("./master.zip", exdir = dirPath, overwrite = TRUE)

## Install or load mcbutils
if (!require(mvbutils)) install.packages("mvbutils")
thefiles = list.files(path = "./qtlcharts-master/R/", full.names = TRUE)
thefiles
## Now we load all the package files into memory, so we can have 
## foodweb generate a map of the package functions.
sapply(thefiles, source)

## Generate plot 
par(mar = rep(0.1, 4))
foodweb(border = TRUE, boxcolor = "pink", lwd = 1.5, cex = 0.8)

```

### Plot Output:

[![enter image description here](https://i.stack.imgur.com/u0Wyc.png)](https://i.stack.imgur.com/u0Wyc.png)