modal-inria / MixtComp

Model-based clustering package for mixed data
Other
12 stars 4 forks source link

heatmap* functions generate an error with pkg = "plotly" #4

Closed Quentin62 closed 3 years ago

Quentin62 commented 3 years ago
require(RMixtCompIO) # for learning a mixture model
dataLearn <- list(var1 = as.character(c(rnorm(50, -2, 0.8), rnorm(50, 2, 0.8))),
                  var2 = as.character(c(rnorm(50, 2), rpois(50, 8))))

model <- list(var1 = list(type = "Gaussian", paramStr = ""),
              var2 = list(type = "Poisson", paramStr = ""))

algo <- list(
  nClass = 2,
  nInd = 100,
  nbBurnInIter = 100,
  nbIter = 100,
  nbGibbsBurnInIter = 100,
  nbGibbsIter = 100,
  nInitPerClass = 3,
  nSemTry = 20,
  confidenceLevel = 0.95,
  ratioStableCriterion = 0.95,
  nStableCriterion = 10,
  mode = "learn"
)

resLearn <- rmcMultiRun(algo, dataLearn, model, nRun = 3)

# plot
heatmapVar(resLearn, pkg = "plotly")
heatmapTikSorted(resLearn, pkg = "plotly")
heatmapClass(resLearn, pkg = "plotly")
Error in matchSignature(signature, fdef) : 
  more elements in the method signature (2) than in the generic signature (1) for function ‘asJSON’
Quentin62 commented 3 years ago

correction will be released in RMixtCompUtilities 4.1.3