Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在写一篇论文,使用 TraMineR 进行序列绘图,使用 ggplot 绘制其余图表。为了保持相同的视觉风格,我想提取seqIplot( )用于创建索引图的数据并使用它来制作索引图。geom_tile( )我应该怎么做?
seqIplot( )
geom_tile( )
使用的所有信息(序列、字母、调色板、短和长状态标签、位置标签……)都在您从原始数据中seqIplot定义的状态序列对象中。seqdef
seqIplot
seqdef
因此,只需使用attributes
attributes
library(TraMineR) data(mvad) ## create a state sequence object from columns 17 to 86 mvad.seq <- seqdef(mvad[,17:86]) attributes(mvad.seq)
希望这可以帮助