Code help for event sequence plots: index, survival, state distribution

Dear all,

I am working with event sequence data and have already run dissimilarity-based analyses using the following code:
idcost <- rep(1, 11)
dd <- seqedist(seqe_obj, idcost = idcost, vparam = 0.1)

I would now like to visually present the findings in a format similar to the attached image, which includes three rows of plots per cluster (sequence index plots, survival curves, and state distribution plots).

Could you please advise whether any further steps are needed or share example code to produce this kind of three-row layout?

Regards,
Fouziah

Hi Fouziah,

I'm not seeing the attached image you referenced. However, I'd suggest looking at ggplot2 extension packages, particularly patchwork.

Here are some helpful links:
ggplot2 Extension Gallery
Patchwork

Good luck and happy plotting!

-JBburg