https://github.com/igraph/rogdf
R interface to the Open Graph Drawing Library
https://github.com/igraph/rogdf
Last synced: 9 months ago
JSON representation
R interface to the Open Graph Drawing Library
- Host: GitHub
- URL: https://github.com/igraph/rogdf
- Owner: igraph
- Created: 2014-02-12T22:03:58.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-15T04:32:16.000Z (about 12 years ago)
- Last Synced: 2025-03-25T07:36:17.699Z (about 1 year ago)
- Language: C++
- Size: 2.37 MB
- Stars: 9
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## R interface to the Open Graph Drawing Framework
### OGDF
[OGDF](http://www.ogdf.net) is a self-contained C++ class library for
the automatic layout of diagrams. OGDF offers sophisticated algorithms
and data structures to use within your own applications or scientific
projects. The library is available under the GNU General Public
License.
OGDF is developed and supported by TU Dortmund, Osnabrück University,
University of Cologne, University of Sydney and oreas GmbH.
### Installation
Until the OGDF R package makes it into
[CRAN](http://cran.r-project.org), you can install it directly
from github, using the `devtools` package:
```
install.packages("devtools") # if you don't have devtools yet
library(devtools)
install_github("igraph/rogdf/OGDF")
```
### Try it out
```
library(OGDF)
library(igraph)
```
```
g <- graph.star(10)
plot(g, layout=L_circular(g))
```

```
g <- erdos.renyi.game(100, 1/100)
l <- L_circular(g)
plot(g, layout=l, vertex.size=3, vertex.label=NA)
```

```
g <- graph.tree(20, 3)
plot(g, layout=L_tree(g))
```
