如何生成显示用户行为的图表?

How generate a graph showing behaviour of users?

我想详细了解用户在登录区的行为。因此我存储用户执行的每个操作。示例:

User1: (main page) -> (login) -> (view posts) -> (view page of user) -> (logout)
User2: (main page) -> (login) -> (view posts) -> (write post) -> (logout)
User3: (main page) -> (login) -> (view settings) -> (change password) -> (logout)

现在我想在图表中显示行为。因此边缘应该反映频率:

                                       (write post) - (logout)
                                     /
(main-page) ≡ (login) = (view posts) - (view page of user) - (logout)
                      \
                        (view settings) - (change password) - (logout)

完成此任务的典型工具是什么?我的工具是否应该生成典型的数据格式?有一个起点就好了。

我认为Sankey digagrams could do the job. There a several tools你可以使用。

对我来说using R and googlevis似乎很直接。