X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=Rscripts%2Fafc_graph.R;h=64e05d6a929dd4063e9ffd2d536fb92877235053;hp=e0c2adfae25c440193a87e54e1075a2653c7478b;hb=3d64c267454b7f21a33b58af45459d1f66d43241;hpb=12b4b71c8c8feb6154abc04dfa9bb93a521ef789 diff --git a/Rscripts/afc_graph.R b/Rscripts/afc_graph.R index e0c2adf..64e05d6 100644 --- a/Rscripts/afc_graph.R +++ b/Rscripts/afc_graph.R @@ -1,5 +1,5 @@ #Author: Pierre Ratinaud -#Copyright (c) 20010 Pierre Ratinaud +#Copyright (c) 20010-2013 Pierre Ratinaud #Lisense: GNU/GPL @@ -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),]