Description Usage Arguments Examples
qtheme
- This function builds generic themes to add a theme to a
Network
object rather than individual print
arguments.
theme_nightheat
A night heat theme.
theme_badkitchen
A 70s kitchen theme.
theme_cafe
A cafe theme.
theme_grayscale
A grayscale theme.
theme_norah
A Norah theme.
theme_hipster
A hipster theme.
theme_duskheat
A duskheat theme.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | qtheme(
x = "generic",
title,
title.color,
layout,
legend,
legend.cex,
legend.text.color,
legend.gradient,
bg,
vertex.color,
vertex.size,
vertex.frame.color,
vertex.label.color,
vertex.label.cex,
edge.label.color,
edge.label.cex
)
theme_nightheat(
x = pars[["x"]],
title = pars[["title"]],
title.color = pars[["title.color"]],
layout = pars[["layout"]],
legend = pars[["legend"]],
legend.cex = pars[["legend.cex"]],
legend.gradient = pars[["legend.gradient"]],
bg = pars[["bg"]],
legend.text.color = pars[["legend.text.color"]],
vertex.color = pars[["vertex.color"]],
vertex.size = pars[["vertex.size"]],
vertex.frame.color = pars[["vertex.frame.color"]],
vertex.label.color = pars[["vertex.label.color"]],
vertex.label.cex = pars[["vertex.label.cex"]],
edge.label.color = pars[["edge.label.color"]],
edge.label.cex = pars[["edge.label.cex"]],
...
)
theme_badkitchen(
x = pars[["x"]],
title = pars[["title"]],
title.color = pars[["title.color"]],
layout = pars[["layout"]],
legend = pars[["legend"]],
legend.cex = pars[["legend.cex"]],
legend.gradient = pars[["legend.gradient"]],
bg = pars[["bg"]],
legend.text.color = pars[["legend.text.color"]],
vertex.color = pars[["vertex.color"]],
vertex.size = pars[["vertex.size"]],
vertex.frame.color = pars[["vertex.frame.color"]],
vertex.label.color = pars[["vertex.label.color"]],
vertex.label.cex = pars[["vertex.label.cex"]],
edge.label.color = pars[["edge.label.color"]],
edge.label.cex = pars[["edge.label.cex"]],
...
)
theme_cafe(
x = pars[["x"]],
title = pars[["title"]],
title.color = pars[["title.color"]],
layout = pars[["layout"]],
legend = pars[["legend"]],
legend.cex = pars[["legend.cex"]],
legend.gradient = pars[["legend.gradient"]],
bg = pars[["bg"]],
legend.text.color = pars[["legend.text.color"]],
vertex.color = pars[["vertex.color"]],
vertex.size = pars[["vertex.size"]],
vertex.frame.color = pars[["vertex.frame.color"]],
vertex.label.color = pars[["vertex.label.color"]],
vertex.label.cex = pars[["vertex.label.cex"]],
edge.label.color = pars[["edge.label.color"]],
edge.label.cex = pars[["edge.label.cex"]],
...
)
theme_grayscale(
x = pars[["x"]],
title = pars[["title"]],
title.color = pars[["title.color"]],
layout = pars[["layout"]],
legend = pars[["legend"]],
legend.cex = pars[["legend.cex"]],
legend.gradient = pars[["legend.gradient"]],
bg = pars[["bg"]],
legend.text.color = pars[["legend.text.color"]],
vertex.color = pars[["vertex.color"]],
vertex.size = pars[["vertex.size"]],
vertex.frame.color = pars[["vertex.frame.color"]],
vertex.label.color = pars[["vertex.label.color"]],
vertex.label.cex = pars[["vertex.label.cex"]],
edge.label.color = pars[["edge.label.color"]],
edge.label.cex = pars[["edge.label.cex"]],
...
)
theme_greyscale(
x = pars[["x"]],
title = pars[["title"]],
title.color = pars[["title.color"]],
layout = pars[["layout"]],
legend = pars[["legend"]],
legend.cex = pars[["legend.cex"]],
legend.gradient = pars[["legend.gradient"]],
bg = pars[["bg"]],
legend.text.color = pars[["legend.text.color"]],
vertex.color = pars[["vertex.color"]],
vertex.size = pars[["vertex.size"]],
vertex.frame.color = pars[["vertex.frame.color"]],
vertex.label.color = pars[["vertex.label.color"]],
vertex.label.cex = pars[["vertex.label.cex"]],
edge.label.color = pars[["edge.label.color"]],
edge.label.cex = pars[["edge.label.cex"]],
...
)
theme_norah(
x = pars[["x"]],
title = pars[["title"]],
title.color = pars[["title.color"]],
layout = pars[["layout"]],
legend = pars[["legend"]],
legend.cex = pars[["legend.cex"]],
legend.gradient = pars[["legend.gradient"]],
bg = pars[["bg"]],
legend.text.color = pars[["legend.text.color"]],
vertex.color = pars[["vertex.color"]],
vertex.size = pars[["vertex.size"]],
vertex.frame.color = pars[["vertex.frame.color"]],
vertex.label.color = pars[["vertex.label.color"]],
vertex.label.cex = pars[["vertex.label.cex"]],
edge.label.color = pars[["edge.label.color"]],
edge.label.cex = pars[["edge.label.cex"]],
...
)
theme_hipster(
x = pars[["x"]],
title = pars[["title"]],
title.color = pars[["title.color"]],
layout = pars[["layout"]],
legend = pars[["legend"]],
legend.cex = pars[["legend.cex"]],
legend.gradient = pars[["legend.gradient"]],
bg = pars[["bg"]],
legend.text.color = pars[["legend.text.color"]],
vertex.color = pars[["vertex.color"]],
vertex.size = pars[["vertex.size"]],
vertex.frame.color = pars[["vertex.frame.color"]],
vertex.label.color = pars[["vertex.label.color"]],
vertex.label.cex = pars[["vertex.label.cex"]],
edge.label.color = pars[["edge.label.color"]],
edge.label.cex = pars[["edge.label.cex"]],
...
)
theme_duskheat(
x = pars[["x"]],
title = pars[["title"]],
title.color = pars[["title.color"]],
layout = pars[["layout"]],
legend = pars[["legend"]],
legend.cex = pars[["legend.cex"]],
legend.gradient = pars[["legend.gradient"]],
bg = pars[["bg"]],
legend.text.color = pars[["legend.text.color"]],
vertex.color = pars[["vertex.color"]],
vertex.size = pars[["vertex.size"]],
vertex.frame.color = pars[["vertex.frame.color"]],
vertex.label.color = pars[["vertex.label.color"]],
vertex.label.cex = pars[["vertex.label.cex"]],
edge.label.color = pars[["edge.label.color"]],
edge.label.cex = pars[["edge.label.cex"]],
...
)
|
x |
The name of the qtheme. |
title |
The title of the plot. |
title.color |
The color of the title. |
layout |
igraph |
legend |
The coordinates of the legend. See
|
legend.cex |
character expansion factor. |
legend.text.color |
The text legend text color. |
legend.gradient |
A vector of ordered colors to use for the gradient fills in the network edges. |
bg |
The color to be used for the background of the device region. See
|
vertex.color |
The font family to be used for vertex labels. |
vertex.size |
The size of the vertex. |
vertex.frame.color |
The color of the vertex border. |
vertex.label.color |
The color of the labels. |
vertex.label.cex |
The font size for vertex labels. |
edge.label.color |
The color for the edge labels. Use |
edge.label.cex |
The font size of the edge labels. |
... |
Additional arguments supplied to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
(poldat <- with(sentSplit(DATA, 4), polarity(state, person)))
m <- Network(poldat)
m
m + theme_nightheat
m + theme_cafe
m + theme_grayscale
m + theme_norah
m + theme_hipster
m + theme_badkitchen
m + theme_duskheat
## make your own themes
theme_irish <- qtheme(x = "irish", bg = "grey25",
vertex.label.color = "grey50", legend.text.color = "white",
legend.gradient = c("darkgreen", "white", "darkorange"),
edge.label.color="white", vertex.size= 20)
m + theme_irish
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.