Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

LastBenchPharmacist.blogspot.

com

om
GRAPHS

.c
ot
sp
l og
.b
ist
ac
rm
ha
hP
nc
Be
st
La

1
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Pie Chart

• A pie chart (or a circle chart) is a circular statistical graphic,


which is divided into slices to illustrate numerical proportion

om
.c
• In a pie chart, the arc length of each slice (and consequently

ot
sp
og
its central angle and area), is proportional to the quantity it

l
.b
st
represents

i
ac
rm
• While it is named for its resemblance to a pie which has been
ha
hP
sliced, there are variations on the way it can be presented
nc
Be

• The earliest known pie chart is generally credited to William


st
La

Playfair's Statistical Breviary of 1801

2
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Pie Chart

• Pie charts are very widely used in the business world

om
and the mass media

.c
ot
• many experts recommend avoiding them as research

sp
l og
.b
has shown it is difficult to compare different sections

ist
ac
of a given pie chart, or to compare data across
rm
different pie charts ha
hP
nc
Be

• Pie charts can be replaced in most cases by other


st
La

plots such as the bar chart, box plot, dot plot, etc

3
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
History

• The earliest known pie chart is generally credited to William


Playfair's Statistical Breviary of 1801

om
.c
• Playfair presented an illustration, which contained a series of

ot
sp
og
pie charts

l
.b
st
• One of those charts depicted the proportions of the Turkish

i
ac
rm
Empire located in Asia, Europe and Africa before 1789
ha
hP
• This invention was not widely used at first
nc
Be

• Playfair thought that pie charts were in need of a third


st
La

dimension to add additional information

4
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com

om
.c
ot
sp
l og
.b
ist
ac
rm
ha
hP
nc
Be
st
La

Pie charts from William Playfair's "Statistical Breviary", 1801

5
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
History

• Florence Nightingale assumed to have created it due to the


obscurity of Playfair's creation

om
.c
• Nightingale's polar area diagram equivalent to a modern

ot
sp
og
circular histogram, to illustrate seasonal sources of patient

l
.b
st
mortality in the military field hospital she managed

i
ac
rm
• It was published in Notes on Matters Affecting the Health,
ha
hP
Efficiency, and Hospital Administration of the British Army and
nc
Be

sent to Queen Victoria in 1858


st
La

• The French engineer Charles Joseph A map of his from 1858


used pie charts to represent the cattle sent from all around
France for consumption in Paris

6
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com

om
.c
ot
sp
l og
.b
ist
ac
rm
ha
hP
nc
Be
st
La

Diagram of the causes of mortality in the army in the East" by


Florence Nightingale
7
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Variants and similar charts

• 3D pie chart and perspective pie cake


om
Doughnut chart

.c
ot
• Exploded pie chart

sp
og

l
Polar area diagram

.b
ist
ac
• Ring chart, sunburst chart, and multilevel pie chart

rm
• Spie chart ha
hP
nc


Be

Square chart / Waffle chart


st
La

8
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
3D Pie Chart and Perspective Pie Cake

• A 3d pie chart, or perspective pie chart, is used to give the


chart a 3D look

om
.c
• Often used for aesthetic reasons, the third dimension does

ot
sp
og
not improve the reading of the data

l
.b
st
• These plots are difficult to interpret because of the distorted

i
ac
rm
effect of perspective associated with the third dimension
ha
hP
• The use of superfluous dimensions not used to display the
nc
Be

data of interest is discouraged for charts in general, not only


st
La

for pie charts

9
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Exploded Pie Chart

• Exploded pie chart for data with the largest party

om
group exploded

.c
ot
• A chart with one or more sectors separated from the

sp
l og
.b
rest of the disk is known as an exploded pie chart

ist
ac
rm
• This effect is used to either highlight a sector, or to
ha
hP
highlight smaller segments of the chart with small
nc
Be

proportions
st
La

10
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Polar Area Diagram
• "Diagram of the causes of mortality in the army in the East" by
Florence Nightingale

om
• The polar area diagram is similar to a usual pie chart, except

.c
ot
sectors have equal angles and differ rather in how far each

sp
og
sector extends from the center of the circle

l
.b
st
• The polar area diagram is used to plot cyclic phenomena (e.g.,

i
ac
rm
counts of deaths by month)
ha
hP
• For example, if the counts of deaths in each month for a year
nc
Be

are to be plotted then there will be 12 sectors (one per


st
La

month) all with the same angle of 30 degrees each

11
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Polar Area Diagram
• The radius of each sector would be proportional to the square
root of the death count for the month, so the area of a sector

om
represents the number of deaths in a month

.c
ot
• If the death count in each month is subdivided by cause of

sp
l og
death, it is possible to make multiple comparisons on one

.b
ist
ac
diagram, as is seen in the polar area diagram famously

rm
developed by Florence Nightingale
ha
hP
nc
Be
st
La

12
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Ring chart, sunburst chart, and
multilevel pie chart
• Multi-level pie chart representing disk usage in a Linux file

om
.c
ot
system

sp
og
• A ring chart, also known as a sunburst chart or a multilevel pie

l
.b
ist
chart, is used to visualize hierarchical data, depicted by

ac
rm
concentric circles.
ha
hP
• The circle in the center represents the root node, with the
nc
Be

hierarchy moving outward from the center.


st
La

• A segment of the inner circle bears a hierarchical relationship


to those segments of the outer circle which lie within the
angular sweep of the parent segment.

13
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Multilevel Pie Chart

• Illustration of the concept using survival data for the people


on board the RMS Titanic which sank in 1912

om
.c
• The information starting from includes a record for each

ot
sp
og
person on board, their gender (Male, Female), class (First,

l
.b
st
Second, Third, Crew), age (Adult, Child), and whether they

i
ac
rm
survived (Yes,No)
ha
hP
nc
Be
st
La

14
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Multilevel Pie Chart

• The inner circle shows exactly the


same pie chart we started with

om
.c
giving the proportions for

ot
sp
og
Passenger Class

l
.b
• The second ring out from the

ist
ac
rm
center gives the data
ha representing gender
hP
nc

• The angular region representing


Be
st

crew is in yellow and is


La

subdivided into Crew-Male and


Crew-Female regions based on
the gender proportion for all
crew members
15
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Multilevel Pie Chart

om
• The idea can be

.c
ot
extended to as many

sp
l og
levels as desired

.b
st
• The

i
figure below

ac
rm
illustrates this and also
ha
hP
shows one potential
nc
Be

problem for this type of


st
La

layout - many of the


'slices' will be thin and
difficult to clearly label

16
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Multilevel Pie Chart

om
.c
ot
sp
l og
.b
ist
ac
rm
ha
hP
nc
Be
st
La

17
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Spie Chart

• A variant of the polar area chart is the spie chart designed by


Dror Feitelson

om
.c
• This superimposes a normal pie chart with a modified polar

ot
sp
og
area chart to permit the comparison of two sets of related

l
.b
st
data

i
ac
rm
• The base pie chart represents the first data set in the usual
ha
hP
way, with different slice sizes
nc
Be

• The second set is represented by the superimposed polar area


st
La

chart, using the same angles as the base, and adjusting the
radii to fit the data

18
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Spie Chart

• For example, the base pie chart


could show the distribution of age

om
.c
and gender groups in a population,

ot
sp
• The overlay their representation

l og
.b
st
among road casualties.

i
ac
rm
• Age and gender groups that are
ha
hP
especially susceptible to being
nc
Be

involved in accidents then stand


st
La

out as slices that extend beyond


the original pie chart

19
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Square chart / Waffle chart
• Square pie chart (Waffle chart), showing how smaller
percentages are more easily shown than on circular charts. On
the 10x10 grid, each cell represents 1%

om
.c
• Square charts, also called Waffle Charts, are a form of pie

ot
sp
og
charts that use squares instead of circles to represent

l
.b
percentages.

ist
ac
rm
• Similar to basic circular pie charts, square pie charts take each
ha
hP
percentage out of a total 100%.
nc
Be

• They are usually 10x10 grids, where each cell represents 1%.
st
La

Despite the name, circles, pictograms (such as of people), and


other shapes may be used instead of squares.
• The benefit to these is that it is easier to depict smaller
percentages that would be hard to see on traditional pie
charts 20
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Square chart / Waffle chart

om
.c
ot
sp
l og
.b
ist
ac
rm
ha
hP
nc
Be
st
La

21
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Effectiveness

• A flaw exhibited by pie charts is that they cannot show more


than a few values without separating the visual encoding (the

om
.c
“slices”) from the data they represent (typically percentages).

ot
sp
og
• When slices become too small, pie charts have to rely on

l
.b
st
colors, textures or arrows so the reader can understand them.

i
ac
rm
• This makes them unsuitable for use with larger amounts of
ha
hP
data.
nc
Be

• Pie charts also take up a larger amount of space on the page


st
La

compared to the more flexible bar charts, which do not need


to have separate legends, and can display other values such as
averages or targets at the same time

22
LastBenchPharmacist.blogspot.com
LastBenchPharmacist.blogspot.com
Effectiveness

• Statisticians generally regard pie charts as a poor method of


displaying information, and they are uncommon in scientific

om
.c
literature.

ot
sp
og
• One reason is that it is more difficult for comparisons to be

l
.b
st
made between the size of items in a chart when area is used

i
ac
rm
instead of length and when different items are shown as
ha
hP
different shapes.
nc
Be

• Three sets of percentages, plotted as both piecharts and


st
La

barcharts. Comparing the data on barcharts is generally easier.

23
LastBenchPharmacist.blogspot.com

You might also like