| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Table: Bar plot...</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
Table: Bar plot... |
| 13 |
</b></font></table></table> |
| 14 |
<p>Draws a bar plot from data in one or more columns of the selected <a href="Table.html">Table</a>. In a bar plot the horizontal axis has nominal values (labels). </p> |
| 15 |
<h2>Settings</h2> |
| 16 |
<p align=middle><img height=564 width=540 src=Table__Bar_plot____1.png></p><dl> |
| 17 |
<dt><b>Vertical column(s)</b> |
| 18 |
<dd>you list the table columns that you want to represent in the bar plot. The number of selected columns is the group size.</dd> |
| 19 |
<dt><b>Vertical range</b> |
| 20 |
<dd>determine the lower and upper limit of the display.</dd> |
| 21 |
<dt><b>Column with labels</b> |
| 22 |
<dd>determines the column whose labels will be put at the bottom of the plot.</dd> |
| 23 |
<dt><b>Distance of first bar from border</b> |
| 24 |
<dd>determines how far the first (and last) bar wil be positioned from the borders (in units of the width of one bar).</dd> |
| 25 |
<dt><b>Distance between bar groups</b> |
| 26 |
<dd>determines how far groups of bars are from each other. </dd> |
| 27 |
<dt><b>Distance between bars within group</b> |
| 28 |
<dd>determines the distance between the bars within each group.</dd> |
| 29 |
<dt><b>Colours</b> |
| 30 |
<dd>determines the colours of the bars in a group.</dd> |
| 31 |
<dt><b>Label text angle (degrees)</b> |
| 32 |
<dd>determines the angle of the labels written below the plot. If you have very long label texts you can prevent the label texts from overlapping.</dd> |
| 33 |
</dl> |
| 34 |
<h2>Examples</h2> |
| 35 |
<p><a href="Keating___Esposito__2006_.html">Keating & Esposito (2006)</a> present a bar plot in their fig. 3 from which we estimate the following data table</p> |
| 36 |
<code> Language Modal Breathy<br></code> |
| 37 |
<code> Chong -1.5 5<br></code> |
| 38 |
<code> Fuzhou 2 10<br></code> |
| 39 |
<code> Green Hmong 3 12<br></code> |
| 40 |
<code> White Hmong 2 11<br></code> |
| 41 |
<code> Mon -1.5 0<br></code> |
| 42 |
<code> SADV Zapotec -6 -4<br></code> |
| 43 |
<code> SLQ Zapotec 3.5 14<br></code> |
| 44 |
<code> Tlacolula Zapotec 3 13<br></code> |
| 45 |
<code> Tamang 1 1<br></code> |
| 46 |
<code> !Xoo 1 14<br></code> |
| 47 |
<p>Given that we have these data in a Table with the three columns labeled "Language", "Modal" and "Breathy", respectively, we can first try to reproduce their figure 3 (a bar plot with both Modal and Breathy columns displayed) </p> |
| 48 |
<p>As you can see the labels in the first column are very long texts and they will surely overlap if plotted at the bottom of a plot. We therefore use a value of 15 degrees for the "Label text angle" parameter. This will make the label texts nonoverlapping. We cannot make this angle much larger, because then the label texts would run out of the viewport. </p> |
| 49 |
<p>The following script line will produce the picture below.</p> |
| 50 |
<code> Bar plot: "Modal Breathy", -10, 20, "Language", 1.0, 1.0, 0.0, "0.9 0.5", 15.0, "yes"<br></code> |
| 51 |
<p align=middle><img height=300 width=500 src=Table__Bar_plot____2.png></p><p>The essentials of the bart plot in their paper are perfectly reproduced in the figure above. If you want the bars within a group to be placed somewhat more apart, say 0.2 times the bar width, you can set the "Distance between bars in a group" to a value of 0.2:</p> |
| 52 |
<code> Bar plot: "Modal Breathy", -10, 20, "Language", 1.0, 1.0, 0.2, "0.9 0.5", 15.0, "yes"<br></code> |
| 53 |
<p align=middle><img height=300 width=500 src=Table__Bar_plot____3.png></p><p>Of course we can also work with colours and we can add vertical marks as the following scriptlet shows</p> |
| 54 |
<code> Bar plot: "Modal Breathy", -10, 20, "Language", 1.0, 1.0, 0.0, "Green Red", 15.0, "yes"<br></code> |
| 55 |
<code> Marks left every: 1, 5, 1, 1, 1<br></code> |
| 56 |
<code> Text left: 1, "H__1_-H__2_ (dB)"<br></code> |
| 57 |
<p align=middle><img height=300 width=500 src=Table__Bar_plot____4.png></p><hr> |
| 58 |
<address> |
| 59 |
<p>© djmw 20230901</p> |
| 60 |
</address> |
| 61 |
</body> |
| 62 |
</html> |