-
Notifications
You must be signed in to change notification settings - Fork 0
/
sentiments_multiple.html
34 lines (25 loc) · 10.4 KB
/
sentiments_multiple.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<h2>Visualisations using Tableau</h2>
<p>Below you'll find various different charts & plots I created with Tableau, using the data I extracted from my text sentiment analyses. Simply scroll down and enjoy!
<br>
<h3>Dashboard</h3>
Here you'll find a <a href="dashboard.html">Google Analytics styled dashboard</a> with several "metrics", a map of all cities mentioned across all books and more.
<h3>Detailed Sentiments</h3>
Below the detailed view of the sentiments using the NRC dictionary. Use the menu in the upper right to show a different book.
</br>
<div class='tableauPlaceholder' id='viz1520804310803' style='position: relative'><noscript><a href='#'><img alt='Sentiments Single ' src='https://public.tableau.com/static/images/Tr/Trial1Sentiments/SentimentsSingle/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='site_root' value='' /><param name='name' value='Trial1Sentiments/SentimentsSingle' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/Tr/Trial1Sentiments/SentimentsSingle/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /></object></div> <script type='text/javascript'> var divElement = document.getElementById('viz1520804310803'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.minWidth='1020px';vizElement.style.maxWidth='100%';vizElement.style.minHeight='687px';vizElement.style.maxHeight=(divElement.offsetWidth*0.75)+'px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement); </script>
<h3>Comparative overview</h3>
Below a comparative overview of all four books. You can see that the two books that are more on the sombre side (1984 & Crime and Punishment) show actually lower sentiment scores, while the more upbeat Charlie and the Chocolate Factory and Hitchhiker's Guide to the Galaxy have "happier" graphs.</p>
</br>
<div class='tableauPlaceholder' id='viz1520806495233' style='position: relative'><noscript><a href='#'><img alt='Sentiments Multiple ' src='https://public.tableau.com/static/images/Tr/Trial1Sentiments/SentimentsMultiple/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='site_root' value='' /><param name='name' value='Trial1Sentiments/SentimentsMultiple' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/Tr/Trial1Sentiments/SentimentsMultiple/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /><param name='filter' value='publish=yes' /></object></div> <script type='text/javascript'> var divElement = document.getElementById('viz1520806495233'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.minWidth='1020px';vizElement.style.maxWidth='100%';vizElement.style.minHeight='687px';vizElement.style.maxHeight=(divElement.offsetWidth*0.75)+'px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement); </script>
<h3>Treemap of Emotions</h3>
<p>Below an overview of emotions within each of the books (according to the NRC dictionary).</p>
<p>What you can notice here is that "Trust" overall makes up a large portion. One reason might be the specific vocabulary being used, especially in 1984 - so for example frequent words such as "police", "ministry" or "comrade" are being associated with the emotion "trust". The same applies to "Hitchhiker's Guide to the Galaxy" with frequent words like "inifinity", "sun" and of course "guide", all of which are also associated with the emotion "trust".</p>
<p>You can click on the items in the legend to highlight a particular emotion in the treemaps.</br>
<div class='tableauPlaceholder' id='viz1520860994714' style='position: relative'><noscript><a href='#'><img alt='Treemaps ' src='https://public.tableau.com/static/images/Tr/Trial1Sentiments/Treemaps/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='site_root' value='' /><param name='name' value='Trial1Sentiments/Treemaps' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/Tr/Trial1Sentiments/Treemaps/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /><param name='filter' value='publish=yes' /></object></div> <script type='text/javascript'> var divElement = document.getElementById('viz1520860994714'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.minWidth='1020px';vizElement.style.maxWidth='100%';vizElement.style.minHeight='587px';vizElement.style.maxHeight=(divElement.offsetWidth*0.75)+'px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement); </script>
<h3>Waffle Chart 1984</h3>
<p>A waffle chart showing the distribution of the emotions in 1984 by George Orwell.</p>
<p>You can click on the items in the legend to highlight a particular emotion in the waffle chart. </p>
<div class='tableauPlaceholder' id='viz1522060154532' style='position: relative'><noscript><a href='http://www.databarcelona.com/sentiments_multiple.html'><img alt='Waffle Chart 1984 ' src='https://public.tableau.com/static/images/Tr/Trial1Sentiments/WaffleChart1984/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='site_root' value='' /><param name='name' value='Trial1Sentiments/WaffleChart1984' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/Tr/Trial1Sentiments/WaffleChart1984/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /><param name='filter' value='publish=yes' /></object></div> <script type='text/javascript'> var divElement = document.getElementById('viz1522060154532'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.minWidth='577px';vizElement.style.maxWidth='620px';vizElement.style.width='100%';vizElement.style.height='587px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement); </script>
<h3>Text clouds</h3>
<p>Below you can see text clouds, so visualisations of the most frequent words per book (excluding stopwords).</p>
<div class='tableauPlaceholder' id='viz1522059982802' style='position: relative'><noscript><a href='http://www.databarcelona.com/sentiments_multiple.html'><img alt='Clouds ' src='https://public.tableau.com/static/images/Tr/Trial1Sentiments/Clouds/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='site_root' value='' /><param name='name' value='Trial1Sentiments/Clouds' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/Tr/Trial1Sentiments/Clouds/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /><param name='filter' value='publish=yes' /></object></div> <script type='text/javascript'> var divElement = document.getElementById('viz1522059982802'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.width='100%';vizElement.style.maxWidth='769px';vizElement.style.height=(divElement.offsetWidth*0.75)+'px';vizElement.style.maxHeight='482px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement); </script>