Bug #820

RCP: x.x, R Charts Engine, Specificites, Using "Group bars by lines" preference with more than 7 columns causes an error while generating the chart in R

Ajouté par Sebastien Jacquot il y a plus de 11 ans. Mis à jour il y a presque 11 ans.

Statut:New Début:19/05/2014
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:Charts / R port from JFC Temps passé: -
Version cible:TXM 0.X.X

Description

Using "Group bars by lines" preference with more than 7 columns causes an error while generating the specificities chart in R. It seems related to the access to Progression.colors, log:

Can't create specificities chart file (charts engine: {0})org.txm.stat.engine.r.RException: ** R error: "Error in colors[[i]] : subscript out of bounds
" 
while evaluating: op <- par(mar=c(5,5,5,10), xpd=TRUE);
mat <- t(DoubleMatrix9);
draw <- barplot(mat, space=c(1,3), col=colors, horiz=F, las=2, names.arg=Vector10, main="word:[]", beside=T, xpd=TRUE);
W2 <- 100000;
lines(c(0,W2), c(-2.0, -2.0), lty=2);
lines(c(0,W2), c(2.0, 2.0), lty=2);
lines(c(0,W2), c(0,0), lty=1);

for(i in 1:length(draw[1,])){
lines(draw[,i], mat[,i], col=colors[[i]]);
}
legend("topright", Vector11, inset = c(-0.2,0), col = colors, pch = 0, xpd=TRUE);

This bug may wait a discussion about the colors sets to use in R and JFC charts engine (e.g. the colors set will be stored outside of the Progression class and shares by all the charts engine implementations).

Historique

#1 Mis à jour par Matthieu Decorde il y a plus de 11 ans

  • Version cible changé de TXM 0.7.6 à TXM 0.7.7

#2 Mis à jour par Sebastien Jacquot il y a environ 11 ans

  • Sujet changé de RCP: x.x, Specificites, Using "Group bars by lines" preference with more than 7 columns causes an error while generating the chart in R à RCP: x.x, R Charts Engine, Specificites, Using "Group bars by lines" preference with more than 7 columns causes an error while generating the chart in R
  • Description mis à jour (diff)

#3 Mis à jour par Sebastien Jacquot il y a presque 11 ans

  • Catégorie changé de Charts à Charts / R port from JFC
  • Version cible changé de TXM 0.7.7 à TXM 0.X.X

Formats disponibles : Atom PDF