theme_empty: A blank theme for plotting networks

Description Usage Arguments Value Author(s) Examples

Description

This function defines a blank theme for plotting graph objects in ggplot.

Usage

1
theme_empty(base_size = 12, base_family = "Helvetica")

Arguments

base_size

The base size of the font

base_family

The font family to use

Value

A ggplot theme blank and transpatent for plotting in another program.

Author(s)

Rodney J. Dyer <rjdyer@vcu.edu>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(lopho)
require(ggplot2)
require(igraph)
layout <- layout.fruchterman.reingold( lopho )
V(lopho)$x <- layout[,1]
V(lopho)$y <- layout[,2]
p <- ggplot() + geom_edgeset( aes(x,y), lopho)
p <- p + geom_nodeset( aes(x,y), lopho )
p
p + theme_empty()
p <- ggplot() + geom_edgeset( aes(x,y,color=weight), lopho)
p

popgraph documentation built on April 14, 2017, 9:58 p.m.