Description Usage Arguments Value Author(s) Examples
This function defines a blank theme for plotting graph objects in ggplot.
1 | theme_empty(base_size = 12, base_family = "Helvetica")
|
base_size |
The base size of the font |
base_family |
The font family to use |
A ggplot theme blank and transpatent for plotting in another program.
Rodney J. Dyer <rjdyer@vcu.edu>
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.