TramineR proportion per cluster

Viewed 72

I am new to TramineR and using seqdplot() command I created a plot to visualize cluster patterns. Is there a way to plot the proportions of each cluster (as seen on the plot below)?

enter image description here

enter image description here

1 Answers

To display the proportion, you can use the group.p function of TraMineRextras. The function adds the proportion to each group label.

Here is the example given in the help page:

library('TraMineRextras')
data(actcal)
actcal <- actcal[1:100,]
actcal.seq <- seqdef(actcal[,13:24])
seqdplot(actcal.seq, group=group.p(actcal$sex))

enter image description here

Related