<?xml version="1.0"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN" "JATS-archivearticle1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="review-article"><?properties open_access?><processing-meta base-tagset="archiving" mathml-version="3.0" table-model="xhtml" tagset-family="jats"><restricted-by>pmc</restricted-by></processing-meta><front><journal-meta><journal-id journal-id-type="nlm-ta">J Korean Med Sci</journal-id><journal-id journal-id-type="iso-abbrev">J Korean Med Sci</journal-id><journal-id journal-id-type="publisher-id">JKMS</journal-id><journal-title-group><journal-title>Journal of Korean Medical Science</journal-title></journal-title-group><issn pub-type="ppub">1011-8934</issn><issn pub-type="epub">1598-6357</issn><publisher><publisher-name>The Korean Academy of Medical Sciences</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="pmid">35607744</article-id><article-id pub-id-type="pmc">9127429</article-id><article-id pub-id-type="doi">10.3346/jkms.2022.37.e166</article-id><article-categories><subj-group subj-group-type="heading"><subject>Guidelines</subject><subj-group subj-group-type="subheading"><subject>Editing, Writing &amp; Publishing</subject></subj-group></subj-group></article-categories><title-group><article-title>Drawing Guideline for JKMS Manuscripts (03): Pyramid Charts</article-title></title-group><contrib-group><contrib contrib-type="author"><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-3380-1683</contrib-id><name><surname>Kim</surname><given-names>Jeehyoung</given-names></name><xref rid="A1-jkms-37-e166" ref-type="aff"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-0401-084X</contrib-id><name><surname>Lee</surname><given-names>Jung Soo</given-names></name><xref rid="A1-jkms-37-e166" ref-type="aff"/></contrib><contrib contrib-type="author"><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-1246-0111</contrib-id><name><surname>Jang</surname><given-names>Sung Jun</given-names></name><xref rid="A1-jkms-37-e166" ref-type="aff"/></contrib></contrib-group><aff id="A1-jkms-37-e166">Department of Orthopedic Surgery, Seoul Sacred Heart General Hospital, Seoul, <country>Korea</country>.</aff><author-notes><corresp>Address for Correspondence: Jung Soo Lee, MD. Department of Orthopedic Surgery, Seoul Sacred Heart General Hospital, 259 Wangsan-ro, Dongdaemun-gu, Seoul 02488, Korea. <email>jokersix@naver.com</email>
</corresp></author-notes><pub-date pub-type="epub"><day>18</day><month>5</month><year>2022</year></pub-date><pub-date pub-type="collection"><day>23</day><month>5</month><year>2022</year></pub-date><volume>37</volume><issue>20</issue><elocation-id>e166</elocation-id><history><date date-type="received"><day>15</day><month>4</month><year>2022</year></date><date date-type="accepted"><day>22</day><month>4</month><year>2022</year></date></history><permissions><copyright-statement>&#xA9; 2022 The Korean Academy of Medical Sciences.</copyright-statement><copyright-year>2022</copyright-year><copyright-holder>The Korean Academy of Medical Sciences</copyright-holder><license><ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/" specific-use="textmining" content-type="ccbynclicense">https://creativecommons.org/licenses/by-nc/4.0/</ali:license_ref><license-p>This is an Open Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by-nc/4.0/">https://creativecommons.org/licenses/by-nc/4.0/</ext-link>) which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p></license></permissions><abstract><p>The appropriate plot effectively conveys the author&#x2019;s conclusions to the readers. <italic toggle="yes">Journal of Korean Medical Science</italic> (<italic toggle="yes">JKMS</italic>) will provide a series of special articles to show you how to make consistent and excellent plots more easily. In this article, we will cover pyramid charts. A pyramid chart is a simple yet popular tool for looking at the structure of a population by age and gender. Other variables can also be applied. This article helps researchers use these charts more easily by introducing effective tools and explaining how to use them.</p></abstract><abstract abstract-type="graphical"><title>Graphical Abstract</title><p>
<graphic xlink:href="jkms-37-e166-abf001.jpg" position="float"/>
</p></abstract><kwd-group kwd-group-type="author"><kwd>Pyramid Chart</kwd></kwd-group></article-meta></front><body><sec sec-type="intro"><title>INTRODUCTION</title><p>Pyramid charts are common, essential, and useful when comparing the age and sex of a population, but it takes a lot of time and effort for researchers to create. We will introduce 4 tools to make it easy and efficient. You will also learn how to use it to compare the age and gender of a population, as well as other variables.</p></sec><sec sec-type="methods"><title>METHODS</title><sec><title>The 1st tool</title><p>Visit <ext-link xlink:href="https://tinyurl.com/D-Pyramid" ext-link-type="uri">https://tinyurl.com/D-Pyramid</ext-link>. The data has a simple structure of age and sex, and it is converted to a pyramid chart on the right (<xref rid="F1-jkms-37-e166" ref-type="fig">Fig. 1</xref>).</p><fig position="float" fig-type="figure" id="F1-jkms-37-e166"><label>Fig. 1</label><caption><title>Basic example of a pyramid chart.</title></caption><graphic xlink:href="jkms-37-e166-g001" position="float"/></fig><p>You can edit any color you like. You can also specify a color by entering words such as &#x2018;blue&#x2019; or &#x2018;red&#x2019; (<xref rid="F2-jkms-37-e166" ref-type="fig">Fig. 2</xref>).</p><fig position="float" fig-type="figure" id="F2-jkms-37-e166"><label>Fig. 2</label><caption><title>Colors can be adjusted by author&#x2019;s preference.</title></caption><graphic xlink:href="jkms-37-e166-g002" position="float"/></fig><p>By changing the &#x2018;bin width&#x2019; to 10, the age is divided into 10-year intervals. If &#x2018;bar label&#x2019; is enabled, the count belonging to each bar is displayed (<xref rid="F3-jkms-37-e166" ref-type="fig">Fig. 3</xref>).</p><fig position="float" fig-type="figure" id="F3-jkms-37-e166"><label>Fig. 3</label><caption><title>Age intervals can be adjusted using &#x2018;bin width.&#x2019; Bar labels can also be specified.</title></caption><graphic xlink:href="jkms-37-e166-g003" position="float"/></fig><p>If you change the &#x2018;label&#x2019; to &#x2018;% of each gender&#x2019; or &#x2018;% of total population,&#x2019; it calculates and displays the percentage according to sex or the groups combined (<xref rid="F4-jkms-37-e166" ref-type="fig">Fig. 4</xref>).</p><fig position="float" fig-type="figure" id="F4-jkms-37-e166"><label>Fig. 4</label><caption><title>Percentage of each subgroup can be also specified as needed.</title></caption><graphic xlink:href="jkms-37-e166-g004" position="float"/></fig><p>The labels displayed on the graph are displayed in the table on the right, so if you need this number, you can copy and paste it into Excel (<xref rid="F5-jkms-37-e166" ref-type="fig">Fig. 5</xref>).</p><fig position="float" fig-type="figure" id="F5-jkms-37-e166"><label>Fig. 5</label><caption><title>Bar labels are displayed as a table on the right for further uses.</title></caption><graphic xlink:href="jkms-37-e166-g005" position="float"/></fig><p>This tool is very concise and stays focused to the essential functions of a population pyramid chart. Raw data is aggregated and summarized in the form of a table, so the result can be used for other purposes.</p></sec><sec><title>The 2nd tool</title><p>Visit <ext-link xlink:href="https://tinyurl.com/Pyramid-Chart2" ext-link-type="uri">https://tinyurl.com/Pyramid-Chart2</ext-link>. Specify one continuous variable and one nominal variable. Then, for the nominal variable, enter the names to be assigned to the right and left sides (<xref rid="F6-jkms-37-e166" ref-type="fig">Fig. 6</xref>).</p><fig position="float" fig-type="figure" id="F6-jkms-37-e166"><label>Fig. 6</label><caption><title>The 2nd tool is for considering additional variables.</title></caption><graphic xlink:href="jkms-37-e166-g006" position="float"/></fig><p>A pyramid chart in the form of a histogram that is divided into sections facing each other is created (<xref rid="F7-jkms-37-e166" ref-type="fig">Fig. 7</xref>).</p><fig position="float" fig-type="figure" id="F7-jkms-37-e166"><label>Fig. 7</label><caption><title>Pyramid chart in the form of a histogram.</title></caption><graphic xlink:href="jkms-37-e166-g007" position="float"/></fig><p>Various color combinations are possible by changing the &#x2018;Select color palette,&#x2019; and the &#x2018;reverse color&#x2019; changes the two colors vice versa. You can choose &#x2018;Select theme,&#x2019; and in the case of a thesis, &#x2018;classic&#x2019; will be appropirate (<xref rid="F8-jkms-37-e166" ref-type="fig">Fig. 8</xref>). This allows you to use any continuous variable other than age, and allows you to use any nominal variables other than sex.</p><fig position="float" fig-type="figure" id="F8-jkms-37-e166"><label>Fig. 8</label><caption><title>Colors can be adjusted as needed.</title></caption><graphic xlink:href="jkms-37-e166-g008" position="float"/></fig></sec><sec><title>The 3rd tool</title><p>Visit <ext-link xlink:href="https://tinyurl.com/Pyramid-Chart-II" ext-link-type="uri">https://tinyurl.com/Pyramid-Chart-II</ext-link>. The data consists of a total of 7 columns, and the middle column represents groups divided by age (<xref rid="F9-jkms-37-e166" ref-type="fig">Fig. 9</xref>).</p><fig position="float" fig-type="figure" id="F9-jkms-37-e166"><label>Fig. 9</label><caption><title>The purpose of the 3rd tool is to specify additional data of each age subgroup.</title></caption><graphic xlink:href="jkms-37-e166-g009" position="float"/></fig><p>The numbers indicated by <italic toggle="yes">x</italic>1 and <italic toggle="yes">y</italic>1 are represented by red bars, respectively, and the numbers represented by <italic toggle="yes">x</italic>2 and <italic toggle="yes">y</italic>2 by yellow green. If the number is 0, the stick disappears.</p><p>Because it shows multicolored sticks, it is useful to show not only the distribution of age, but also additional information such as showing the distribution of urban and rural populations according to age (<xref rid="F10-jkms-37-e166" ref-type="fig">Fig. 10</xref>).</p><fig position="float" fig-type="figure" id="F10-jkms-37-e166"><label>Fig. 10</label><caption><title>Additional distributional data of each age subgroup specified.</title></caption><graphic xlink:href="jkms-37-e166-g010" position="float"/></fig><p>Since each label can be replaced with the desired text, various applications are possible (<xref rid="F11-jkms-37-e166" ref-type="fig">Fig. 11</xref>).</p><fig position="float" fig-type="figure" id="F11-jkms-37-e166"><label>Fig. 11</label><caption><title>Labels can be replaced as needed.</title></caption><graphic xlink:href="jkms-37-e166-g011" position="float"/></fig><p>If you upload data like this (<xref rid="F12-jkms-37-e166" ref-type="fig">Fig. 12</xref>), It will look something like this. In other words, it is possible to compare not only the age group but also various groups (<xref rid="F13-jkms-37-e166" ref-type="fig">Fig. 13</xref>).</p><fig position="float" fig-type="figure" id="F12-jkms-37-e166"><label>Fig. 12</label><caption><title>Example data for the 3rd tool.</title></caption><graphic xlink:href="jkms-37-e166-g012" position="float"/></fig><fig position="float" fig-type="figure" id="F13-jkms-37-e166"><label>Fig. 13</label><caption><title>Final chart shows variables within various age groups.</title></caption><graphic xlink:href="jkms-37-e166-g013" position="float"/></fig><p>If &#x2018;select rainbow color&#x2019; is set to 7, the visible light color is divided into 7 and displayed (<xref rid="F14-jkms-37-e166" ref-type="fig">Fig. 14</xref>), and if set to 14, 14 colors are displayed. (<xref rid="F15-jkms-37-e166" ref-type="fig">Fig. 15</xref>) Let&#x2019;s say you want to use colors 2, 4, and 7 out of 7 colors.</p><fig position="float" fig-type="figure" id="F14-jkms-37-e166"><label>Fig. 14</label><caption><title>Example of color palette on selecting rainbow color as 7.</title></caption><graphic xlink:href="jkms-37-e166-g014" position="float"/></fig><fig position="float" fig-type="figure" id="F15-jkms-37-e166"><label>Fig. 15</label><caption><title>Example of color palette on selecting rainbow color as 14.</title></caption><graphic xlink:href="jkms-37-e166-g015" position="float"/></fig><p>Data can be organized as above. Enter 0 where the bar is not required (<xref rid="F16-jkms-37-e166" ref-type="fig">Fig. 16</xref>).</p><fig position="float" fig-type="figure" id="F16-jkms-37-e166"><label>Fig. 16</label><caption><title>Enter data as 0 where bar is not required.</title></caption><graphic xlink:href="jkms-37-e166-g016" position="float"/></fig><p>Eventually you will be able to use any color you want (<xref rid="F17-jkms-37-e166" ref-type="fig">Fig. 17</xref>). If you want to express only a specific group with a different color, it can be applied. This tool has the advantage of having the shape of a pyramid chart and allowing you to select and use multiple colors at will.</p><fig position="float" fig-type="figure" id="F17-jkms-37-e166"><label>Fig. 17</label><caption><title>Final chart with previously chosen colors.</title></caption><graphic xlink:href="jkms-37-e166-g017" position="float"/></fig></sec><sec><title>The 4th tool</title><p>Visit <ext-link xlink:href="https://tinyurl.com/D-Dual-Pyramid" ext-link-type="uri">https://tinyurl.com/D-Dual-Pyramid</ext-link>. The data is prepared in 5 columns. Data for F1 and M1 are expressed as bar charts, and data for F2 and M2 are expressed as line charts. This chart is suitable for comparing the demographic structures of two countries, or for comparing the demographics of the past and present (<xref rid="F18-jkms-37-e166" ref-type="fig">Fig. 18</xref>).</p><fig position="float" fig-type="figure" id="F18-jkms-37-e166"><label>Fig. 18</label><caption><title>The 4th tool is for comparing 2 demographic data as bar and line charts.</title></caption><graphic xlink:href="jkms-37-e166-g018" position="float"/></fig><p>If you change the selection of &#x2018;compare&#x2019; to &#x2018;male and female,&#x2019; only F1 and F2 data are used to compare men and women. The bar chart on the right shows F1, and the line chart on the right shows M1. The bar chart on the left is M1, and the line chart is F1. Hence it is a good chart to compare the distribution of men and women. If you look at the chart above, you can see that there are more males in young age, and more females in old age (<xref rid="F19-jkms-37-e166" ref-type="fig">Fig. 19</xref>).</p><fig position="float" fig-type="figure" id="F19-jkms-37-e166"><label>Fig. 19</label><caption><title>Comparison between gender can be also shown as needed.</title></caption><graphic xlink:href="jkms-37-e166-g019" position="float"/></fig><p>You can also adjust the color for 4 types of information (<xref rid="F20-jkms-37-e166" ref-type="fig">Fig. 20</xref>). Since there are little options left to configure you can create a graph immediately by uploading your own data.</p><fig position="float" fig-type="figure" id="F20-jkms-37-e166"><label>Fig. 20</label><caption><title>Adjust color as needed.</title></caption><graphic xlink:href="jkms-37-e166-g020" position="float"/></fig></sec><sec><title>Upload and further editing</title><p>You can upload your own data using &#x2018;want to use my data.&#x2019; Save the data as a csv file in Excel, and make it in the same format as the example data.</p><p>After selecting &#x2018;plot download,&#x2019; you can confirm the size, download it in the desired format, and edit it further using an appropriate editing program (<xref rid="F21-jkms-37-e166" ref-type="fig">Fig. 21</xref>). You can edit svg files in PowerPoint, and recently, it has become more convenient because you can also edit PDFs in MS Office.</p><fig position="float" fig-type="figure" id="F21-jkms-37-e166"><label>Fig. 21</label><caption><title>Plots can be downloaded as author&#x2019;s needs.</title></caption><graphic xlink:href="jkms-37-e166-g021" position="float"/></fig></sec></sec><sec sec-type="conclusions"><title>CONCLUSION</title><p>We have introduced 4 tools that can create Pyramid Charts, and looked at the functions of each. All of them are simple and intuitive to use, so it will be easy for researchers to use according to their needs.</p></sec></body><back><fn-group><fn fn-type="COI-statement"><p><bold>Disclosure:</bold> The authors have no potential conflicts of interest to disclose.</p></fn><fn fn-type="con"><p><bold>Author Contributions:</bold>
<list list-type="simple"><list-item><p><bold>Writing - original draft:</bold> Kim J.</p></list-item><list-item><p><bold>Writing - review &amp; editing:</bold> Kim J, Lee JS, Jang SJ.</p></list-item></list></p></fn></fn-group></back></article>
