Search code examples
rplottraminer

Error ploting sequences in TraMineR R


Just starting to experiment TraMiner, after having read the (very good) User Guide

I managed to create the sequences from my data, but as I'm trying to plot I got the following errors:

> seqiplot(my.data$sequences, title="My first sequences", withlegend = TRUE)
Error in do.call(plot, args = plist) : 
'what' must be a string or a function

Where does this come from and what can I do about it?


Solution

  • I think you get an error because you override the plot function. This reproduce the error:

    plot <- 1
    do.call(plot,list(0))
    Error in do.call(plot, list(0)) : 
      'what' must be a character string or a function
    

    This should ork:

     rm(plot)
     seqiplot(my.data$sequences, title="My first sequences", withlegend = TRUE)