@@ -188,8 +188,10 @@ plot.static.graph.scenes.all <- function(data)
188188
189189 # plot whole unfiltered graph
190190 graph.file <- get.path.data.graph(mode = " scenes" , net.type = " static" , filtered = FALSE , pref = " graph" )
191- if (! is.na(attr ))
192- graph.file <- paste0(graph.file , " _attr=" , attr )
191+ if (is.na(attr ))
192+ graph.file <- get.path.data.graph(mode = " scenes" , net.type = " static" , filtered = FALSE , pref = " graph" )
193+ else
194+ graph.file <- get.path.data.graph(mode = " scenes" , net.type = " static" , filtered = FALSE , subfold = " attributes" , pref = " graph" , suf = paste0(" attr=" , attr ))
193195 tlog(6 ," Plotting the whole unfiltered graph in file " ,graph.file )
194196 for (fformat in PLOT_FORMAT )
195197 { if (fformat == PLOT_FORMAT_PDF )
@@ -253,9 +255,10 @@ plot.static.graph.scenes.all <- function(data)
253255
254256 # plot whole filtered graph
255257 if (is.na(attr ) || attr != COL_FILTER )
256- { graph.file <- get.path.data.graph(mode = " scenes" , net.type = " static" , filtered = TRUE , pref = " graph" )
257- if (! is.na(attr ))
258- graph.file <- paste0(graph.file , " _attr=" , attr )
258+ { if (is.na(attr ))
259+ graph.file <- get.path.data.graph(mode = " scenes" , net.type = " static" , filtered = TRUE , pref = " graph" )
260+ else
261+ graph.file <- get.path.data.graph(mode = " scenes" , net.type = " static" , filtered = TRUE , subfold = " attributes" , pref = " graph" , suf = paste0(" attr=" , attr ))
259262 tlog(6 ," Plotting the whole filtered graph in file " ,graph.file )
260263 for (fformat in PLOT_FORMAT )
261264 { if (fformat == PLOT_FORMAT_PDF )
@@ -573,7 +576,7 @@ plot.static.graph.scenes.partial <- function(data, arc=NA, vol=NA)
573576 # ww <- E(g.filtr)$Duration
574577 ww <- rep(1 , gsize(g.filtr ))
575578 el <- get.edgelist(g.filtr , names = FALSE )
576- lay.filtr <<- qgraph.layout.fruchtermanreingold( # actually not used anymore
579+ lay.filtr <<- qgraph.layout.fruchtermanreingold(
577580 edgelist = el ,
578581 vcount = gorder(g.filtr ),
579582 weight = ww ,
0 commit comments