Skip to content

Commit

Permalink
final settings
Browse files Browse the repository at this point in the history
  • Loading branch information
briatte committed Jul 27, 2014
1 parent 9b19e66 commit b8d16fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dossiers-ch.r
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ if(!file.exists("networks-ch.rda") | update) {
# gexf

gexf = paste0("net_ch", gsub("\\D", "", k), ".gexf")
if(!file.exists(gexf) & gsub("\\D", "", k) > 47) {
if(!file.exists(gexf) & gsub("\\D", "", k) > 47 & export) {

rgb = t(col2rgb(colors[ names(colors) %in% as.character(n %v% "party") ]))
mode = "fruchtermanreingold"
Expand Down
6 changes: 3 additions & 3 deletions dossiers-se.r
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ if(!file.exists("networks-se.rda") | update) {
party = n %v% "party"
names(party) = network.vertex.names(n)

i = colors[ party[ n %e% "source" ] ]
j = colors[ party[ n %e% "target" ] ]
i = colors[ b[ n %e% "source", "parti" ] ]
j = colors[ b[ n %e% "target", "parti" ] ]

party = as.vector(i)
party[ i != j ] = "#AAAAAA"
Expand All @@ -254,7 +254,7 @@ if(!file.exists("networks-se.rda") | update) {
# gexf

gexf = paste0("net_se", k, ".gexf")
if(!file.exists(gexf)) {
if(!file.exists(gexf) & export) {

rgb = t(col2rgb(colors[ names(colors) %in% as.character(n %v% "party") ]))
mode = "fruchtermanreingold"
Expand Down
5 changes: 3 additions & 2 deletions make.r
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ order = c("ECOLO", "SOC-F", "SOC-V", "LIB-F", "LIB-V",
# scrapers

update = TRUE
export = FALSE

# source("dossiers-ch.r")
source("dossiers-ch.r")
source("dossiers-se.r")
# source("plots.r")
source("plots.r")

# kthxbye

0 comments on commit b8d16fe

Please sign in to comment.