Learn R Programming

popgraph (version 1.4)

theme_empty: A blank theme for plotting networks

Description

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

Usage

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.

Examples

Run this code
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

Run the code above in your browser using DataLab