Something like this? If so, I just pushed an update example to the examples repo (https://github.com/HumanDynamics/openbadge-analysis-examples/blob/master/notebooks/meeting_simple_plots.ipynb).
If that's not what you are looking for, please attach a sketch showing what you need and I'll try to help
Thank you so much for such a quick reply. Adding to the bar plot, how can I have separated graph for each time interval (sketch below, y-axis can be time or percentage of contribution)? Our experiment have 4 sub-discussion with breaks in-between for questionnaires, so it will be nice if we can some how see the change in speaking contribution over the course of time. We are interested, at least for the data we have right now from our pilot, how storytelling can "bring people closer to each other".
Also, I tried to apply the turning taking example code (find genuine, real speakers) into our data, but I ended up with this errors. Could you take a look and guide me through what I should do? I think my data file, which can be found in the attachment, slightly differs from the example data, don't know whether this should be a problem though.
'''
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-6-6d76904d4345> in <module>()
----> 1 df_spk_mean, df_spk_std = get_spk_genuine(df_flt, thre)
c:\users\dell\appdata\local\programs\python\python27\lib\site-packages\openbadge_analysis-0.4.4-py2.7.egg\openbadge_analysis\preprocessing\audio.pyc in get_spk_genuine(df_meet, thre)
156 get genuine spk
157 """
--> 158 df_meet_sec = get_meet_sec(df_meet)
159 df_cor = df_meet_sec.groupby(df_meet_sec.index).corr().dropna()
160 df_cor = pd.DataFrame((df_cor >= thre).T.all())
c:\users\dell\appdata\local\programs\python\python27\lib\site-packages\openbadge_analysis-0.4.4-py2.7.egg\openbadge_analysis\preprocessing\audio.pyc in get_meet_sec(df_meet)
21 """
22 df_meet_sec = df_meet.copy()
---> 23 df_meet_sec.index = df_meet_sec.index.map(lambda x: x.replace(microsecond=0))
24 return df_meet_sec
25
c:\users\dell\appdata\local\programs\python\python27\lib\site-packages\pandas\core\indexes\base.pyc in map(self, mapper)
2774 """
2775 from .multi import MultiIndex
-> 2776 mapped_values = self._arrmap(self.values, mapper)
2777 attributes = self._get_attributes_dict()
2778 if mapped_values.size and isinstance(mapped_values[0], tuple):
pandas\_libs\algos_common_helper.pxi in pandas._libs.algos.arrmap_object (pandas\_libs\algos.c:31954)()
c:\users\dell\appdata\local\programs\python\python27\lib\site-packages\openbadge_analysis-0.4.4-py2.7.egg\openbadge_analysis\preprocessing\audio.pyc in <lambda>(x)
21 """
22 df_meet_sec = df_meet.copy()
---> 23 df_meet_sec.index = df_meet_sec.index.map(lambda x: x.replace(microsecond=0))
24 return df_meet_sec
25
AttributeError: 'tuple' object has no attribute 'replace'
'''
Best regards.