X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=Rscripts%2Fafc_graph.R;h=eb7da8c529b5e7f276b487796dad491853d7449b;hp=e0c2adfae25c440193a87e54e1075a2653c7478b;hb=de4de1d1befab72d8e2e40625153e85b0799628e;hpb=12b4b71c8c8feb6154abc04dfa9bb93a521ef789 diff --git a/Rscripts/afc_graph.R b/Rscripts/afc_graph.R index e0c2adf..eb7da8c 100644 --- a/Rscripts/afc_graph.R +++ b/Rscripts/afc_graph.R @@ -51,6 +51,7 @@ if ( qui == 3 ) { if ( what == 0 ) table.in <- afc$colcoord if ( what == 1 ) table.in <- afc$colcrl rownames(table.in) <- afc$colnames + eff <- afc$colmass if (typegraph == 0) { table.in<-table.in[,c(x,y)] } else { @@ -76,7 +77,12 @@ if ( qui == 3 ) { ry <- range(table.in[,2], na.rm = TRUE) rz <- range(table.in[,3], na.rm = TRUE) } - eff <- rowSums(afctable) + if (exists('afctable')) { + eff <- rowSums(afctable) + } else { + eff <- afctable$rowmass + } + if (!is.null(debsup)) { if ( qui == 0 ) { table.in <- table.in[1:(debsup-1),]