在阅读(非常好)User Guide之后,刚刚开始尝试 TraMiner
我设法从我的数据创建序列,但当我尝试绘制时,出现以下错误:
> 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
这是从哪里来的?我该怎么办?
最佳答案
我认为您收到错误是因为您覆盖了 plot
函数。这会重现错误:
plot <- 1
do.call(plot,list(0))
Error in do.call(plot, list(0)) :
'what' must be a character string or a function
这应该可以:
rm(plot)
seqiplot(my.data$sequences, title="My first sequences", withlegend = TRUE)
关于r - TraMineR R 中绘制序列时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17755359/