r - TraMineR R 中绘制序列时出错

标签 r plot traminer

在阅读(非常好)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/

相关文章:

python - 如何在 matplotlib 中绘制具有 2 个以上特征的 sklearn svm 的超平面?

python - 带状图中的颜色标记由与色调不同的变量表示

r - 如何使用 TraMineR 和聚合序列数据进行差异分析?

TraMineR:seqici 对同一序列提供不同的结果

r - 在 R 中一次循环 10 列

r - [r] 中的采购脚本显示自 2.15.1 以来的警告

r - 通过模式匹配熔化柱

Python/matplotlib : print to resolution and without white space/borders/margins

r - 建立总线连接失败;运行命令 'timedatectl' 的状态为 1

r - r-检查每一列是否为na