Pro Data Visualization using R and JavaScript
1st Edition Tom Barker pdf download
https://ebookname.com/product/pro-data-visualization-using-r-and-
javascript-1st-edition-tom-barker/
Get Instant Ebook Downloads – Browse at https://ebookname.com
Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...
A Primer in Biological Data Analysis and Visualization
Using R Gregg Hartvigsen
https://ebookname.com/product/a-primer-in-biological-data-
analysis-and-visualization-using-r-gregg-hartvigsen/
Visual Data Mining Techniques and Tools for Data
Visualization and Mining 1st Edition Tom Soukup
https://ebookname.com/product/visual-data-mining-techniques-and-
tools-for-data-visualization-and-mining-1st-edition-tom-soukup/
Data Visualization with Python and JavaScript Scrape
Clean Explore Transform Your Data 1st Edition Kyran
Dale
https://ebookname.com/product/data-visualization-with-python-and-
javascript-scrape-clean-explore-transform-your-data-1st-edition-
kyran-dale/
Merciless Zebra Romantic Suspense Mary Burton
https://ebookname.com/product/merciless-zebra-romantic-suspense-
mary-burton/
Milestone Documents in American History Exploring the
Primary Sources That Shaped America 1st Edition Paul
Finkelman
https://ebookname.com/product/milestone-documents-in-american-
history-exploring-the-primary-sources-that-shaped-america-1st-
edition-paul-finkelman/
Knowledge Is Pleasure Florence Ayscough in Shanghai 1st
Edition Lindsay Shen
https://ebookname.com/product/knowledge-is-pleasure-florence-
ayscough-in-shanghai-1st-edition-lindsay-shen/
Transcription Factors 1st Edition Joseph Locker
https://ebookname.com/product/transcription-factors-1st-edition-
joseph-locker/
Handbook of SCADA control systems security 1st Edition
Radvanovsky
https://ebookname.com/product/handbook-of-scada-control-systems-
security-1st-edition-radvanovsky/
Jini and JavaSpaces Application Development 1st Edition
Robert Flenner
https://ebookname.com/product/jini-and-javaspaces-application-
development-1st-edition-robert-flenner/
Quality Management 1st Edition Graeme Knowles
https://ebookname.com/product/quality-management-1st-edition-
graeme-knowles/
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
v
Contents at a Glance
About the Author���������������������������������������������������������������������������������������������������������������xiii
About the Technical Reviewer��������������������������������������������������������������������������������������������xv
Acknowledgments������������������������������������������������������������������������������������������������������������xvii
Chapter 1: Background
■
■ 
������������������������������������������������������������������������������������������������������1
Chapter 2: R Language Primer
■
■ ����������������������������������������������������������������������������������������25
Chapter 3: A Deeper Dive into R
■
■ ��������������������������������������������������������������������������������������47
Chapter 4: Data Visualization with D3
■
■ �����������������������������������������������������������������������������65
Chapter 5: Visualizing Spatial Data from Access Logs
■
■ 
����������������������������������������������������85
Chapter 6: Visualizing Data Over Time
■
■ ��������������������������������������������������������������������������111
Chapter 7: Bar Charts
■
■ ����������������������������������������������������������������������������������������������������133
Chapter 8: Correlation Analysis with Scatter Plots
■
■ �������������������������������������������������������157

Chapter 9: Visualizing the Balance of Delivery and Quality with
■
■
Parallel Coordinates������������������������������������������������������������������������������������������������������177
Index���������������������������������������������������������������������������������������������������������������������������������193
1
Chapter 1
Background
There is a new concept emerging in the field of web development: using data visualizations as communication tools.
This concept is something that is already well established in other fields and departments. At the company where
you work, your finance department probably uses data visualizations to represent fiscal information both internally
and externally; just take a look at the quarterly earnings reports for almost any publicly traded company. They are
full of charts to show revenue by quarter, or year over year earnings, or a plethora of other historic financial data.
All are designed to show lots and lots of data points, potentially pages and pages of data points, in a single easily
digestible graphic.
Compare the bar chart in Google’s quarterly earnings report from back in 2007 (see Figure 1-1) to a subset of the
data it is based on in tabular format (see Figure 1-2).
Figure 1-1. Google Q4 2007 quarterly revenue shown in a bar chart
Chapter 1 ■ Background
2
The bar chart is imminently more readable. We can clearly see by the shape of it that earnings are up and
have been steadily going up each quarter. By the color-coding, we can see the sources of the earnings; and with the
annotations, we can see both the precise numbers that those color-coding represent and what the year over year
percentages are.
With the tabular data, you have to read labels on the left, line up the data on the right with those labels, do your
own aggregation and comparison, and draw your own conclusions. There is a lot more upfront work needed to take
in the tabular data, and there exists the very real possibility of your audience either not understanding the data
(thus creating their own incorrect story around the data) or tuning out completely because of the sheer amount of
work needed to take in the information.
It’s not just the Finance department that uses visualizations to communicate dense amounts of data. Maybe your
Operations department uses charts to communicate server uptime, or your Customer Support department uses graphs
to show call volume. Whatever the case, it’s about time Engineering and Web Development got on board with this.
As a department, group, and industry we have a huge amount of relevant data that is important for us to first be
aware of so that we can refine and improve what we do; but also to communicate out to our stakeholders,
to demonstrate our successes or validate resource needs, or to plan tactical roadmaps for the coming year.
Before we can do this, we need to understand what we are doing. We need to understand what data visualizations
are, a general idea of their history, when to use them, and how to use them both technically and ethically.
What Is Data Visualization?
OK, so what exactly is data visualization? Data visualization is the art and practice of gathering, analyzing, and
graphically representing empirical information. They are sometimes called information graphics, or even just
charts and graphs. Whatever you call it, the goal of visualizing data is to tell the story in the data. Telling the story is
predicated on understanding the data at a very deep level, and gathering insight from comparisons of data points in
the numbers.
There exists syntax for crafting data visualizations, patterns in the form of charts that have an immediately known
context. We devote a chapter to each of the significant chart types later in the book.
Time Series Charts
Time series charts show changes over time. See Figure 1-3 for a time series chart that shows the weighted popularity
of the keyword “Data Visualization” from Google Trends (http://www.google.com/trends/).
Figure 1-2. Similar earnings data in tabular form
Chapter 1 ■ Background
3
Note that the vertical y axis shows a sequence of numbers that increment by 20 up to 100. These numbers represent
the weighted search volume, where 100 is the peak search volume for our term. On the horizontal x axis, we see years
going from 2007 to 2012. The line in the chart represents both axes, the given search volume for each date.
From just this small sample size, we can see that the term has more than tripled in popularity, from a low of 29
in the beginning of 2007 up to the ceiling of 100 by the end of 2012.
Bar Charts
Bar charts show comparisons of data points. See Figure 1-4 for a bar chart that demonstrates the search volume by
country for the keyword “Data Visualization,” the data for which is also sourced from Google Trends.
Figure 1-3. Time series of weighted trend for the keyword “Data Visualization” from Google Trends
Search Volume for Keyword
‘Data Visualization’ by Region
from Google Trends
Spain
France
Germany
China
United Kingdom
Netherlands
Australia
Canada
India
United States
0 20 40 60 80 100
Figure 1-4. Google Trends breakdown of search volume by region for keyword “Data Visualization”
Chapter 1 ■ Background
4
We can see the names of the countries on the y axis and the normalized search volume, from 0 to 100, on the
x axis. Notice, though, that no time measure is given. Does this chart represent data for a day, a month, or a year?
Also note that we have no context for what the unit of measure is. I highlight these points not to answer them
but to demonstrate the limitations and pitfalls of this particular chart type. We must always be aware that our
audience does not bring the same experience and context that we bring, so we must strive to make the stories
in our visualizations as self evident as possible.
Histograms
Histograms are a type of bar chart used to show the distribution of data or how often groups of information appear
in the data. See Figure 1-5 for a histogram that shows how many articles the New York Times published each year,
from 1980 to 2012, that related in some way to the subject of data visualization. We can see from the chart that the
subject has been ramping up in frequency since 2009.
1980 1985 1990 1995 2000 2005 2010
Year
Distribution of Articles about Data Visualization
by the NY Times
Frequency
20
15
10
5
0
Figure 1-5. Histogram showing distribution of NY Times articles about data visualization
Chapter 1 ■ Background
5
In this example, the states with the darker shades indicate a greater interest in the search term. (This data also
is derived from Google Trends, for which interest is demonstrated by how frequently the term “Data Visualization”
is searched for on Google.)
Scatter Plots
Like bar charts, scatter plots are used to compare data, but specifically to suggest correlations in the data, or where
the data may be dependent or related in some way. See Figure 1-7, in which we use data from Google Correlate,
(http://www.google.com/trends/correlate), to look for a relationship between search volume for the keyword
“What is Data Visualization” and the keyword “How to Create Data Visualization.”
Figure 1-6. Data map of U.S. states by interest in “Data Visualization” (data from Google Trends)
Data Maps
Data maps are used to show the distribution of information over a spatial region. Figure 1-6 shows a data map used
to demonstrate the interest in the search term “Data Visualization” broken out by U.S. states.
Chapter 1 ■ Background
6
This chart suggests a positive correlation in the data, meaning that as one term rises in popularity the other also
rises. So what this chart suggests is that as more people find out about data visualization, more people want to learn
how to create data visualizations.
The important thing to remember about correlation is that it does not suggest a direct cause—correlation is not
causation.
History
If we’re talking about the history of data visualization, the modern conception of data visualization largely started with
William Playfair. William Playfair was, among other things, an engineer, an accountant, a banker, and an all-around
Renaissance man who single handedly created the time series chart, the bar chart, and the bubble chart. Playfair’s
charts were published in the late eighteenth century into the early nineteenth century. He was very aware that his
innovations were the first of their kind, at least in the realm of communicating statistical information, and he spent a
good amount of space in his books describing how to make the mental leap to seeing bars and lines as representing
physical things like money.
Playfair is best known for two of his books: the Commercial and Political Atlas and the Statistical Breviary. The
Commercial and Political Atlas was published in 1786 and focused on different aspects of economic data from national
debt, to trade figures, and even military spending. It also featured the first printed time series graph and bar chart.
Figure 1-7. Scatter plot examining the correlation between search volume for terms related to “Data Visualization”
,
“How to Create” and “What is”
Chapter 1 ■ Background
7
His Statistical Breviary focused on statistical information around the resources of the major European countries
of the time and introduced the bubble chart.
Playfair had several goals with his charts, among them perhaps stirring controversy, commenting on the
diminishing spending power of the working class, and even demonstrating the balance of favor in the import and
export figures of the British Empire, but ultimately his most wide-reaching goal was to communicate complex
statistical information in an easily digested, universally understood format.
Note
■
■ Both books are back in print relatively recently, thanks to Howard Wainer, Ian Spence, and Cambridge
University Press.
Playfair had several contemporaries, including Dr. John Snow, who made my personal favorite chart: the cholera
map. The cholera map is everything an informational graphic should be: it was simple to read; it was informative;
and, most importantly, it solved a real problem.
The cholera map is a data map that outlined the location of all the diagnosed cases of cholera in the outbreak
of London 1854 (see Figure 1-8). The shaded areas are recorded deaths from cholera, and the shaded circles on the
map are water pumps. From careful inspection, the recorded deaths seemed to radiate out from the water pump on
Broad Street.
Figure 1-8. John Snow’s cholera map
Chapter 1 ■ Background
8
Dr. Snow had the Broad Street water pump closed, and the outbreak ended.
Beautiful, concise, and logical.
Another historically significant information graphic is the Diagram of the Causes of Mortality in the Army in the
East, by Florence Nightingale and William Farr. This chart is shown in Figure 1-9.
Figure 1-9. Florence Nightingale and William Farr’s Diagram of the Causes of Mortality in the Army in the East
Nightingale and Farr created this chart in 1856 to demonstrate the relative number of preventable deaths and,
at a higher level, to improve the sanitary conditions of military installations. Note that the Nightingale and Farr
visualization is a stylized pie chart. Pie charts are generally a circle representing the entirety of a given data set with
slices of the circle representing percentages of a whole. The usefulness of pie charts is sometimes debated because it
can be argued that it is harder to discern the difference in value between angles than it is to determine the length of
a bar or the placement of a line against Cartesian coordinates. Nightingale seemingly avoids this pitfall by having not
just the angle of the wedge hold value but by also altering the relative size of the slices so they eschew the confines of
the containing circle and represent relative value.
All the above examples had specific goals or problems that they were trying to solve.
Note
■
■  A rich comprehensive history is beyond the scope of this book, but if you are interested in a thoughtful,
incredibly researched analysis, be sure to read Edward Tufte’s The Visual Display of Quantitative Information.
Modern Landscape
Data visualization is in the midst of a modern revitalization due in large part to the proliferation of cheap storage
space to store logs, and free and open source tools to analyze and chart the information in these logs.
Chapter 1 ■ Background
9
From a consumption and appreciation perspective, there are websites that are dedicated to studying and talking
about information graphics. There are generalized sites such as FlowingData that both aggregate and discuss data
visualizations from around the web, from astrophysics timelines to mock visualizations used on the floor of Congress.
The mission statement from the FlowingData About page (http://flowingdata.com/about/) is appropriately
the following: “FlowingData explores how designers, statisticians, and computer scientists use data to understand
ourselves better—mainly through data visualization.”
There are more specialized sites such as quantifiedself.com that are focused on gathering and visualizing
information about oneself. There are even web comics about data visualization, the quintessential one being
xkcd.com, run by Randall Munroe. One of the most famous and topical visualizations that Randall has created thus far
is the Radiation Dose Chart. We can see the Radiation Dose Chart in Figure 1-10 (it is available in high resolution here:
http://xkcd.com/radiation/).
Figure 1-10. Radiation Dose Chart, by Randall Munroe. Note that the range in scale being represented in this
visualization as a single block in one chart is exploded to show an entirely new microcosm of context and information.
This pattern is repeated over and over again to show an incredible depth of information
Chapter 1 ■ Background
10
This chart was created in response to the Fukushima Daiichi nuclear disaster of 2011, and sought to clear up
misinformation and misunderstanding of comparisons being made around the disaster. It did this by demonstrating the
differences in scale for the amount of radiation from sources such as other people or a banana, up to what a fatal dose of
radiation ultimately would be—how all that compared to spending just ten minutes near the Chernobyl meltdown.
Over the last quarter of a century, Edward Tufte, author and professor emeritus at Yale University, has been
working to raise the bar of information graphics. He published groundbreaking books detailing the history of data
visualization, tracing its roots even further back than Playfair, to the beginnings of cartography. Among his principles
is the idea to maximize the amount of information included in each graphic—both by increasing the amount of
variables or data points in a chart and by eliminating the use of what he has coined chartjunk. Chartjunk, according to
Tufte, is anything included in a graph that is not information, including ornamentation or thick, gaudy arrows.
Tufte also invented the sparkline, a time series chart with all axes removed and only the trendline remaining to
show historic variations of a data point without concern for exact context. Sparklines are intended to be small enough
to place in line with a body of text, similar in size to the surrounding characters, and to show the recent or historic
trend of whatever the context of the text is.
Why Data Visualization?
In William Playfair’s introduction to the Commercial and Political Atlas, he rationalizes that just as algebra is the
abbreviated shorthand for arithmetic, so are charts a way to “abbreviate and facilitate the modes of conveying
information from one person to another.” Almost 300 years later, this principle remains the same.
Data visualizations are a universal way to present complex and varied amounts of information, as we saw in our
opening example with the quarterly earnings report. They are also powerful ways to tell a story with data.
Imagine you have your Apache logs in front of you, with thousands of lines all resembling the following:
127.0.0.1 - - [10/Dec/2012:10:39:11 +0300] GET / HTTP/1.1 200 468 - Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty)
127.0.0.1 - - [10/Dec/2012:10:39:11 +0300] GET /favicon.ico HTTP/1.1 200 766 - Mozilla/5.0
(X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty)
Among other things, we see IP address, date, requested resource, and client user agent. Now imagine this
repeated thousands of times—so many times that your eyes kind of glaze over because each line so closely resembles
the ones around it that it’s hard to discern where each line ends, let alone what cumulative trends exist within.
By using some analysis and visualization tools such as R, or even a commercial product such as Splunk, we can
artfully pull out all kinds of meaningful and interesting stories out of this log, from how often certain HTTP errors occur
and for which resources, to what our most widely used URLs are, to what the geographic distribution of our user base is.
This is just our Apache access log. Imagine casting a wider net, pulling in release information, bugs and
production incidents. What insights we could gather about what we do: from how our velocity impacts our defect
density to how our bugs are distributed across our feature sets. And what better way to communicate those findings
and tell those stories than through a universally digestible medium, like data visualizations?
The point of this book is to explore how we as developers can leverage this practice and medium as part of
continual improvement—both to identify and quantify our successes and opportunities for improvements, and more
effectively communicate our learning and our progress.
Tools
There are a number of excellent tools, environments, and libraries that we can use both to analyze and visualize our
data. The next two sections describe them.
Chapter 1 ■ Background
11
Languages, Environments, and Libraries
The tools that are most relevant to web developers are Splunk, R, and the D3 JavaScript library. See Figure 1-11 for a
comparison of interest over time for them (from Google Trends).
Figure 1-11. Google Trends analysis of interest over time in Splunk, R, and D3
From the figure we can see that R has had a steady consistent amount of interest since 200; Splunk had an
introduction to the chart around 2005, had a spike of interest around 2006, and had steady growth since then.
As for D3, we see it just start to peak around 2011 when it was introduced and its predecessor Protovis was sunsetted.
Let’s start with the tool of choice for many developers, scientists, and statisticians: the R language. We have a
deep dive into the R environment and language in the next chapter, but for now it’s enough to know that it is an open
source environment and language used for statistical analysis and graphical display. It is powerful, fun to use, and,
best of all, it is free.
Splunk has seen a tremendous steady growth in interest over the last few years—and for good reason. It is easy to
use once it’s set up, scales wonderfully, supports multiple concurrent users, and puts data reporting at the fingertips of
everyone. You simply set it up to consume your log files; then you can go into the Splunk dashboard and run reports on
key values within those logs. Splunk creates visualizations as part of its reporting capabilities, as well as alerting. While
Splunk is a commercial product, it also offers a free version, available here: http://www.splunk.com/download.
D3 is a JavaScript library that allows us to craft interactive visualizations. It is the official follow-up to Protovis.
Protovis was a JavaScript library created in 2009 by Stanford University’s Stanford Visualization Group. Protovis was
sunsetted in 2011, and the creators unveiled D3. We explore the D3 library at length in Chapter 4.
Analysis Tools
Aside from the previously mentioned languages and environments, there are a number of analysis tools available
online.
A great hosted tool for analysis and research is Google Trends. Google Trends allows you to compare trends on
search terms. It provides all kinds of great statistical information around those trends, including comparing their
relative search volume (see Figure 1-12), the geographic area those trends are coming from (see Figure 1-13), and
related keywords.
Chapter 1 ■ Background
12
Figure 1-13. Google Trends data map showing geographic location where interest in the key words is originating
Figure 1-12. Google Trends for the terms “data scientist” and “computer scientist” over time; note the interest in the
term “data scientist” growing rapidly from 2011 on to match the interest in the term “computer scientist”
Chapter 1 ■ Background
13
Another great tool for analysis is Wolfram|Alpha (http://wolframalpha.com). See Figure 1-14 for a screenshot of
the Wolfram|Alpha homepage.
Figure 1-14. Home page for Wolfram|Alpha
Wolfram|Alpha is not a search engine. Search engines spider and index content. Wolfram|Alpha is instead a
Question Answering (QA) engine that parses human readable sentences with natural language processing and
responds with computed results. Say, for example, you want to search for the speed of light. You might go to the
Wolfram|Alpha site and type in “What is the speed of light?” Remember that it uses natural language processing to
parse your search query, not the keyword lookup.
The results of this query can be seen in Figure 1-15. Wolfram|Alpha essentially looks up all the data it has
around the speed of light and presents it in a structured, categorized fashion. You can also export the raw data for
each result.
Chapter 1 ■ Background
14
Figure 1-15. Wolfram|Alpha results for query What is the speed of light
Process Overview
So we understand what data visualization is, have a high-level understanding of the history of it and an idea of
the current landscape. We’re beginning to get an inkling about how we can start to use this in our world. We know
some of the tools that are available to us to facilitate the analysis and creation of our charts. Now let’s look at the
process involved.
Chapter 1 ■ Background
15
Creating data visualizations involves four core steps:
1. Identify a problem.
2. Gather the data.
3. Analyze the data.
4. Visualize the data.
Let’s walk through each step in the process and re-create one of the previous charts to demonstrate the process.
Identify a Problem
The very first step is to identify a problem we want to solve. This can be almost anything—from something as
profound and wide-reaching as figuring out why your bug backlog doesn’t seem to go down and stay down, to seeing
what feature releases over a given period in time caused the most production incidents, and why.
For our example, let’s re-create Figure 1-5 and try to quantify the interest in data visualization over time as
represented by the number of New York Times articles on the subject.
Gather Data
We have an idea of what we want to investigate, so let’s dig in. If you are trying to solve a problem or tell a story around
your own product, you would of course start with your own data—maybe your Apache logs, maybe your bug backlog,
maybe exports from your project tracking software.
Note
■
■ If you are focusing on gathering metrics around your product and you don’t already have data handy, you need to
invest in instrumentation.There are many ways to do this, usually by putting logging in your code.At the very least, you want to
log error states and monitor those, but you may want to expand the scope of what you track to include for ­
debugging purposes
while still respecting both your user’s privacy and your company’s privacy policy. In my book, Pro JavaScript ­
Performance:
Monitoring and Visualization, I explore ways to track and visualize web and runtime performance.
One important aspect of data gathering is deciding which format your data should be in (if you're lucky) or discovering
which format your data is available in. We’ll next be looking at some of the common data formats in use today.
JSON is an acronym that stands for JavaScript Object Notation. As you probably know, it is essentially a way to
send data as serialized JavaScript objects. We format JSON as follows:
[object]{
[attribute]: [value],
[method] : function(){},
[array]: [item, item]
}
Another way to transfer data is in XML format. XML has an expected syntax, in which elements can have attributes,
which have values, values are always in quotes, and every element must have a closing element. XML looks like this:
parent attribute=value
child attribute=valuenode data/child
/parent
Generally we can expect APIs to return XML or JSON to us, and our preference is usually JSON because as we can
see it is a much more lightweight option just in sheer amount of characters used.
Chapter 1 ■ Background
16
But if we are exporting data from an application, it most likely will be in the form of a comma separated value file,
or CSV. A CSV is exactly what it sounds like: values separated by commas or some other sort of delimiter:
value1,value2,value3
value4,value5,value6
For our example, we’ll use the New York Times API Tool, available at http://prototype.nytimes.com/gst/
apitool/index.html. The API Tool exposes all the APIs that the New York Times makes available, including the Article
Search API, the Campaign Finance API, and the Movie Review API. All we need to do is select the Article Search API
from the drop-down menu, type in our search query or the phrase that we want to search for, and click “Make Request”
.
This queries the API and returns the data to us, formatted as JSON. We can see the results in Figure 1-16.
Figure 1-16. The NY Times API Tool
We can then copy and paste the returned JSON data to our own file or we could go the extra step to get an API
key so that we can query the API from our own applications.
For the sake of our example, we will save the JSON data to a file that we will name jsNYTimesData. The contents
of the file will be structured like so:
{
offset: 0,
results: [
{
body: BODY COPY,
Chapter 1 ■ Background
17
byline: By AUTHOR,
date: 20121011,
title: TITLE,
url: http://www.nytimes.com/foo.html
}, {
body: BODY COPY,
byline: By AUTHOR,
date: 20121021,
title: TITLE,
url: http://www.nytimes.com/bar.html
}
],
tokens: [
JavaScript
],
total: 2
}
Looking at the high-level JSON structure, we see an attribute named offset, an array named results, an array
named tokens, and another attribute named total. The offset variable is for pagination (what page full of results
we are starting with). The total variable is just what it sounds like: the number of results that are returned for our
query. It’s the results array that we really care about; it is an array of objects, each of which corresponds to an article.
The article objects have attributes named body, byline, date, title, and url.
We now have data that we can begin to look at. That takes us to our next step in the process, analyzing our data.
DATA SCRUBBING
There is often a hidden step here, one that anyone who’s dealt with data knows about: scrubbing the data. Often
the data is either not formatted exactly as we need it or, in even worse cases, it is dirty or incomplete.
In the best-case scenario in which your data just needs to be reformatted or even concatenated, go ahead and do
that, but be sure to not lose the integrity of the data.
Dirty data has fields out of order, fields with obviously bad information in them—think strings in ZIP codes—or
gaps in the data. If your data is dirty, you have several choices:
You could drop the rows in question, but that can harm the integrity of the data—a good example
•
is if you are creating a histogram removing rows could change the distribution and change what
your results will be.
The better alternative is to reach out to whoever administers the source of your data and try and
•
get a better version if it exists.
Whatever the case, if data is dirty or it just needs to be reformatted to be able to be imported into R, expect to
have to scrub your data at some point before you begin your analysis.
Analyze Data
Having data is great, but what does it mean? We determine it through analysis.
Analysis is the most crucial piece of creating data visualizations. It’s only through analysis that we can understand
our data, and it is only through understanding it that we can craft our story to share with others.
Chapter 1 ■ Background
18
To begin analysis, let’s import our data into R. Don’t worry if you aren’t completely fluent in R; we do a deep
dive into the language in the next chapter. If you aren’t familiar with R yet, don’t worry about coding along with the
following examples: just follow along to get an idea of what is happening and return to these examples after reading
Chapters 3 and 4.
Because our data is JSON, let’s use an R package called rjson. This will allow us to read in and parse JSON with
the fromJSON() function:
library(rjson)
json_data - fromJSON(paste(readLines(jsNYTimesData.txt), collapse=))
This is great, except the data is read in as pure text, including the date information. We can’t extract information
from text because obviously text has no contextual meaning outside of being raw characters. So we need to iterate
through the data and parse it to more meaningful types.
Let's create a data frame (an array-like data type specific to R that we talk about next chapter), loop through our
json_data object; and parse year, month, and day parts out of the date attribute. Let’s also parse the author name out
of the byline, and check to make sure that if the author’s name isn’t present we substitute the empty value with the
string “unknown”.
df - data.frame()
for(n in json_data$results){
year -substr(n$date, 0, 4)
month - substr(n$date, 5, 6)
day - substr(n$date, 7, 8)
author - substr(n$byline, 4, 30)
title - n$title
if(length(author)  1){
author - unknown
}
Next, we can reassemble the date into a MM/DD/YYYY formatted string and convert it to a date object:
datestamp -paste(month, /, day, /, year, sep=)
datestamp - as.Date(datestamp,%m/%d/%Y)
And finally before we leave the loop, we should add this newly parsed author and date information to a
temporary row and add that row to our new data frame.
newrow - data.frame(datestamp, author, title, stringsAsFactors=FALSE, check.rows=FALSE)
df - rbind(df, newrow)
}
rownames(df) - df$datestamp
Our complete loop should look like the following:
df - data.frame()
for(n in json_data$results){
year -substr(n$date, 0, 4)
month - substr(n$date, 5, 6)
day - substr(n$date, 7, 8)
author - substr(n$byline, 4, 30)
title - n$title
Chapter 1 ■ Background
19
if(length(author)  1){
author - unknown
}
datestamp -paste(month, /, day, /, year, sep=)
datestamp - as.Date(datestamp,%m/%d/%Y)
newrow - data.frame(datestamp, author, title, stringsAsFactors=FALSE, check.rows=FALSE)
df - rbind(df, newrow)
}
rownames(df) - df$datestamp
Note that our example assumes that the data set returned has unique date values. If you get errors with this, you
may need to scrub your returned data set to purge any duplicate rows.
Once our data frame is populated, we can start to do some analysis on the data. Let’s start out by pulling just the
year from every entry, and quickly making a stem and leaf plot to see the shape of the data.
Note
■
■ John Tukey created the stem and leaf plot in his seminal work, Exploratory Data Analysis. Stem and leaf plots
are quick, high-level ways to see the shape of data, much like a histogram. In the stem and leaf plot, we construct the
“stem” column on the left and the “leaf” column on the right. The stem consists of the most significant unique elements
in a result set. The leaf consists of the remainder of the values associated with each stem. In our stem and leaf plot below,
the years are our stem and R shows zeroes for each row associated with a given year. Something else to note is that
often alternating sequential rows are combined into a single row, in the interest of having a more concise visualization.
First, we will create a new variable to hold the year information:
yearlist - as.POSIXlt(df$datestamp)$year+1900
If we inspect this variable, we see that it looks something like this:
 yearlist
[1] 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 2011 2011 2011 2011 2011 2011
2011 2011 2011 2011 2011 2011 2011 2011 2011 2011
[30] 2011 2011 2011 2011 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2009 2009 2009 2009 2009
2009 2009 2008 2008 2008 2007 2007 2007 2007 2006
[59] 2006 2006 2006 2005 2005 2005 2005 2005 2005 2004 2003 2003 2003 2002 2002 2002 2002 2001 2001
2000 2000 2000 2000 2000 2000 1999 1999 1999 1999
[88] 1999 1999 1998 1998 1998 1997 1997 1996 1996 1995 1995 1995 1993 1993 1993 1993 1992 1991 1991
1991 1990 1990 1990 1990 1989 1989 1989 1988 1988
[117] 1988 1986 1985 1985 1985 1984 1982 1982 1981
That’s great, that’s exactly what we want: a year to represent every article returned. Next let’s create the stem and
leaf plot:
 stem(yearlist)
1980 | 0
1982 | 00
1984 | 0000
1986 | 0
1988 | 000000
Chapter 1 ■ Background
20
1990 | 0000000
1992 | 00000
1994 | 000
1996 | 0000
1998 | 000000000
2000 | 00000000
2002 | 0000000
2004 | 0000000
2006 | 00000000
2008 | 0000000000
2010 | 000000000000000000000000000000
2012 | 0000000000000
Very interesting. We see a gradual build with some dips in the mid-1990s, another gradual build with another dip
in the mid-2000s and a strong explosion since 2010 (the stem and leaf plot groups years together in twos).
Looking at that, my mind starts to envision a story building about a subject growing in popularity. But what
about the authors of these articles? Maybe they are the result of one or two very interested authors that have quite
a bit to say on the subject.
Let’s explore that idea and take a look at the author data that we parsed out. Let’s look at just the unique authors
from our data frame:
 length(unique(df$author))
[1] 81
We see that there are 81 unique authors or combination of authors for these articles! Just out of curiosity, let’s take
a look at the breakdown by author for each article. Let’s quickly create a bar chart to see the overall shape of the data
(the bar chart is shown in Figure 1-17):
plot(table(df$author), axes=FALSE)
Figure 1-17. Bar chart of number of articles by author to quickly visualize
Chapter 1 ■ Background
21
We remove the x and y axes to allow ourselves to focus just on the shape of the data without worrying too much
about the granular details. From the shape, we can see a large number of bars with the same value; these are authors
who have written a single article. The higher bars are authors who have written multiple articles. Essentially each
bar is a unique author, and the height of the bar indicates the number of articles they have written. We can see that
although there are roughly five standout contributors, most authors have average one article.
Note that we just created several visualizations as part of our analysis. The two steps aren’t mutually exclusive;
we often times create quick visualizations to facilitate our own understanding of the data. It’s the intention with which
they are created that make them part of the analysis phase. These visualizations are intended to improve our own
understanding of the data so that we can accurately tell the story in the data.
What we’ve seen in this particular data set tells a story of a subject growing in popularity, demonstrated by the
increasing number of articles by a variety of authors. Let’s now prepare it for mass consumption.
Note
■
■ We are not fabricating or inventing this story. Like information archaeologists, we are sifting through the raw
data to uncover the story.
Visualize Data
Once we’ve analyzed the data and understand it (and I mean really understand the data to the point where we are
conversant in all the granular details around it), and once we’ve seen the story that the data has within, it is time to
share that story.
For the current example, we’ve already crafted a stem and leaf plot as well as a bar chart as part of our analysis.
However, stem and leaf plots are great for analyzing data, but not so great for messaging out about the findings. It is
not immediately obvious what the context of the numbers in a stem and leaf plot represents. And the bar chart we
created supported the main thesis of the story instead of communicating that thesis.
Since we want to demonstrate the distribution of articles by year, let’s instead use a histogram to tell the story:
hist(yearlist)
See Figure 1-18 for what this call to the hist() function generates.
Chapter 1 ■ Background
22
This is a good start, but let’s refine this further. Let’s color in the bars, give the chart a meaningful title, and strictly
define the range of years.
hist(yearlist, breaks=(1981:2012), freq=TRUE, col=#CCCCCC, main=Distribution of Articles about
Data Visualizationnby the NY Times, xlab = Year)
This produces the histogram that we see in Figure 1-5.
Ethics of Data Visualization
Remember Figure 1-3 from the beginning of this chapter where we looked at the weighted popularity of the search
term “Data Visualization”? By constraining the data to 2006 to 2012, we told a story of a keyword growing in
popularity, almost doubling in popularity over a six-year period. But what if we included more data points in our
sample and extended our view to include 2004? See Figure 1-19 for this expanded time series chart.
1980 1985 1990 1995 2000 2005 2010 2015
yearlist
Histogram of yearlist
Frequency
30
25
20
15
10
5
0
Figure 1-18. Histogram of yearlist
Random documents with unrelated
content Scribd suggests to you:
Ministry, authority in, 184;
ordination to, 187.
Miracles, 222;
an aid to spiritual growth, 238;
testimony of, not infallible, 233;
wrought by evil powers, 234.
Missing Scripture, mentioned in Bible, 260.
Mode of baptism, 139.
Modern revelation, 320.
Moloch, horrible worship of, 52.
Mormon, Book of, see Book of Mormon.
Moroni, the angel, visits Joseph Smith, 10-12, 261.
Moses, conferred authority on Joseph Smith, 20, 351.
Mutual Improvement Associations, 216.
Nature, God in, 50.
Nature, proofs from, regarding theism, 31.
Natural indications of God, 50.
Naturalness of belief in God, 48.
Necessity of belief in God, 49.
Nephites, 264;
baptism among, 143;
sacrament instituted among, 176;
visited by Christ, 143, 176.
New Jerusalem (Zion), 360.
New Testament, 249;
authenticity and origin of, 249;
classification of, 252;
didactic books, 253;
genuineness of, 258;
historical books, 252;
prophetical books, 253.
Nicene Creed, 47.
Obedience to law, 424-440.
Offerings, fast, 446;
free-will, 446;
and tithes, 446-447.
Ordination to the ministry, 187.
Old Testament, 243;
its origin and growth, 243;
original language of, 246;
Historical books, 248;
Pentateuch, 247, 257;
Poetical books, 248;
Prophetical books, 248, 258;
Septuagint version of, 246.
Omniscience, omnipotence, and omnipresence of God, 42-43.
Pagan ignorance of resurrection, 403.
Paradise, 405.
Passover and sacrament, 182.
Patriarchs, or evangelists, 211.
Patriarchal office, succession in the, 211.
Pentateuch, 247;
Samaritan copy of the, 257.
Perdition, Sons of, 62, 421.
Persecution of Joseph Smith, 24.
Personality of the Godhead, 41;
of the Holy Ghost, 164.
Peter, James, and John confer the Melchisedek priesthood, 194.
Plates of Book of Mormon, 10, 269;
of Nephi, 269;
of Mormon, 269, 270.
Plural marriages, discontinuance of, 435, 440.
Poetical books of Old Testament, 248.
Power, through faith, 106.
Practical religion, 441.
Pre-existence of spirits, 197.
Presidency in the priesthood, 212.
Presidency, The First, 213.
Presidency of Stakes, 215.
President of the High Priesthood, 213.
Presiding Bishopric, 214.
Presiding quorum of Seventy, 214.
Priesthood, Aaronic, 207;
local organizations of, 215;
Levitical, 208;
Melchisedek, 208;
quorum organizations of, 212;
orders of, 207;
restoration to earth, 206;
specific duties in, 209.
Priests, 210.
Priests, High, 211.
Primary Associations, 216.
Primitive Church, 201;
apostasy from, 203, 205.
Prophecy, concerning Book of Mormon, 283;
biblical, concerning Book of Mormon, 284;
gift of, 231.
Prophet, usage of the term, 237.
Prophets, of old, organized, 237.
Prophets, School of the, 237.
Prophetical books, Old Testament, 248;
New Testament, 253.
Punishment for sin, 61;
duration of, 63;
endless and eternal, 63.
Quorum organizations, 212;
of deacons, 209;
of elders, 210;
of high priests, 211;
of the First Presidency, 213;
of the Twelve Apostles, 213;
of teachers, 210;
of seventies, 210;
of seventies, the Presiding Quorum of, 214.
Quorum, special usage of term, 209.
Reason, supporting theism, 30.
Re-baptism, 145;
re-baptisms recorded in Scripture, 146.
Redemption from the Fall, universal, 96;
see Atonement.
Regeneration of earth, 385.
Reign of Christ on earth, 367, 374.
Relief Society, The, 216.
Religion and Theology, 4.
Religion classes, among the Latter day Saints, 216.
Religion, practical, 441.
Religious liberty and toleration, 406;
intolerance, 409, 414, 422.
Remission of sins, to obtain, 113
Renewal of the earth, 385.
Repentance, essential to salvation, 117;
a gift from God, 118;
here and hereafter, 119;
nature of, 113;
not always possible, 118.
Responsibility of man, 57.
Restoration of the Church, 206.
Restoration of the Ten Tribes, 353.
Results of the Fall, 70.
Resurrection of the body, 391;
inaugurated, 396;
the first, 396;
heathen in the first, 404;
the final, 401;
of Christ, 396;
and the general resurrection immediately following, 396;
predicted, 393;
at second coming of Christ, 398;
pagan ignorance concerning, 403.
Resurrections, two general, of just and of unjust, 396.
Revelation, 308;
ancient, 311;
continual, 314;
alleged scriptural objections to continual revelation, 317;
gift of, 232;
future, expected, 323;
God's means of communication, 310;
revelation and inspiration, 308, 324;
modern, 320; supporting theism, 35.
Review exercises for class, 463.
Sacrament of the Lord's Supper, 175;
errors, concerning, 183;
emblems used in, 179;
fit partakers of, 177;
institution of, among Jews, 175;
among Nephites, 176;
manner of administering, 180;
purpose of, 179;
sacrament and passover, 182;
usage of term sacrament, 182.
Sadducees, 404.
Salvation, general, 90;
individual, 90;
and exaltation, 94.
Sanctity of the body, 459.
Satan, 57, 64, 382.
Schools, Church, 216;
Sunday, 216.
School of the Prophets, 237.
Scripture missing, mentioned in Bible, 260.
Seal of martyrdom, Joseph Smith, 25.
Secular authority, submission to, 424-438.
Septuagint, 246, 257.
Serpent, curse on, 74.
Seventies, office of, and quorum organization, 210.
Sexes, unlawful association of, 459.
Sin, 59;
commission of, in ignorance, 60;
forgiveness for, 113;
punishment for, 61;
unpardonable, 62.
Smith, Joseph, see Joseph Smith.
Society, the Relief, 216.
Sons of Perdition, 62, 421.
Spaulding Story of the Book of Mormon, 278.
Spirit, Holy, see Holy Ghost.
Spiritual creations, 199.
Spiritual gifts, 219;
characteristic of the Church, 219;
decline of, incident to the apostasy, 238;
exist in Church today, 236;
partial enumeration of, 225;
imitations of, 235;
modern manifestations, 239;
nature of, 220.
Stakes of Zion, 215.
Stake Presidency, 215.
Standard works of the Church, 5.
Stewardship and consecration, 449, 450.
Submission to laws of the land, 424-438.
Succession in patriarchal office, 211.
Sunday schools, 216.
Teachers, false, 192.
Teacher, grade of, in Aaronic priesthood, 209.
Telestial glory, 95, 419, 423.
Temples, ancient and modern, 157.
Temptation of Eve, 67.
Ten Commandments, The, found among relics of ancient Americans,
303.
Terrestrial glory, 95, 418.
Testament, New, see New Testament.
Testament, Old, see Old Testament.
Testimony of miracles, not infallible, 233.
Theism, modifications of, defined, 51.
Theology, 2;
extent of, 3;
importance of study, 1;
and religion, 4.
Theories of Origin of Book of Mormon, 278.
Thousand years of peace (Millennium), 379, 383.
Time of Christ's coming, 373.
Tithing, law of, 447, 449.
Title page of Book of Mormon, 263, 278.
Toleration, religious, 406;
does not imply acceptance, 414.
Tongues, gift of, 226;
interpretation of, 226.
Tradition and history supporting theism, 28.
Traditions among American aborigines, confirming Book of Mormon,
305.
Tradition, Mexican, regarding the Savior, 307.
Transgression, 54.
Translation of the Book of Mormon, 273.
Tree of Knowledge of Good and Evil, 68.
Tree of Life, 68.
Tribes, The Ten, or The Lost, 335, 338;
journeyings of, 340;
restoration of, 353.
Trinity, The, 38.
Unauthorized ministrations, 189.
United Order, 451.
Unity of the Godhead, 39.
Universal and unconditional redemption from effects of the Fall, 96.
Unlawful association of the sexes, 459.
Unpardonable sin, 62.
Versions of Old Testament, 246.
Versions of Bible, 246, 253, 257.
Vicarious nature of the atonement, 79.
Visions and dreams, 229.
Ward, organization, and officers of, 215.
Ward Bishopric, 215.
Witnesses to Book of Mormon, Testimony of, the Three, 276;
the Eight, 277;
notes concerning, 279.
Works of the Church, standard, 5.
Written language of ancient Americans, 301.
Zion, 356;
the name, 357;
founding of in Missouri, 366;
Zion of Enoch, 358;
the New Jerusalem, 360.
FOOTNOTES:
[1] See Doc.  Cov. supplement to Lecture I on Faith; Buck's
Theological Dictionary, p. 582.
[2] See Key to Theology, by Parley P. Pratt, chap. i.
[3] Gen. ii, 8; Pearl of Great Price: Moses iii, 15.
[4] Gen. iii, 21; Pearl of Great Price: Moses iv, 27.
[5] Gen. vi, 14: I Nephi xvii, 8; xviii, 1-4.
[6] I Nephi xviii, 12, 21.
[7] I Nephi xvi, 10, 16, 26-30; xviii, 12, 21; Alma xxxvii, 38.
[8] Exo. xxv, xxvi, xxvii.
[9] W. E. Gladstone.
[10] See Note 1.
[11] See Note 3.
[12] James i, 5.
[13] Pearl of Great Price: Extr. Hist. of Jos. Smith, 10-17.
[14] See Note 2.
[15] Compare Malachi iv, 1.
[16] Compare Malachi iv, 5-6.
[17] See Isaiah xi.
[18] Compare Acts iii, 22-23.
[19] See Note 5.
[20] See Note 4.
[21] Rev. xiv, 6. See Note 9.
[22] Mal. iv, 5-6.
[23] See page 11.
[24] Doc.  Cov. cx, 13-16.
[25] See Lectures on Article 10, pp. 326-366.
[26] See pp. 326-383.
[27] Doc.  Cov. cx, 11.
[28] Micah iv, 1-2.
[29] See Lectures on Book of Mormon, Article 8, pp. 261-307.
[30] Isa. xxix, 4; see also II Nephi iii, 19.
[31] Ezek. xxxvii, 16-19.
[32] Eph. i, 9-10.
[33] II Nephi xxx, 18.
[34] Acts iii, 19-21.
[35] Doc.  Cov. cxii, 30-32.
[36] Doc.  Cov. xiii.
[37] Doc.  Cov. xxvii, 12.
[38] Doc.  Cov. cx, 12.
[39] Deut. xviii, 22.
[40] Times and Seasons, Vol. II, No. 13.
[41] Millennial Star, Vol. XIX, p. 630. Also Hist. of the Ch., Vol. V,
p. 85.
[42] Doc. and Cov. xlix, 24-25.
[43] See Pearl of Great Price, British edition of 1851, and
Millennial Star, Vol. XLIX, p. 396. The prophecy is now a part of
the Doctrine and Covenants, see section lxxxvii.
[44] See Doc. and Cov. lxxxvii, 5-7.
[45] Mark xvi, 16-18; Luke x, 19, etc.; Doc. and Cov. lxxxiv, 65-
72.
[46] Exo. vii, 11, 22: viii, 7, 18; Rev. xiii, 13-15: xvi, 13-14.
[47] See Lecture on Article 7, pp. 219-239.
[48] See Notes 1, 2, and 3.
[49] Genesis i; see also Pearl of Great Price, Moses ii, 1.
[50] Genesis iii, 8; and Pearl of Great Price, Moses iv, 14.
[51] Pearl of Great Price, Moses v, 6-9.
[52] Genesis iv, 9-16; Pearl of Great Price, Moses v, 22, 34-40.
[53] Genesis iv, 16; Pearl of Great Price, Moses v, 41.
[54] Genesis vi, 13, and succeeding chapter.
[55] Genesis xii, and succeeding chapters.
[56] Exo. iii, 4; xix, 18; Numb. xii, 5.
[57] Numb. xii, 8; see also Pearl of Great Price, Moses i, 1-2.
[58] Exo. xix, 9, 11, 17-20.
[59] Cassell's Bible Dictionary, p. 481.
[60] Paul in Heb. iii, 4
[61] See Note 4.
[62] See Note 5.
[63] Psalms xiv, 1.
[64] Proverbs i, 7; x, 21; xiv, 9.
[65] Gen. v, 18-24; see also Jude 14.
[66] Pearl of Great Price, Moses vi, vii.
[67] Exodus iii, 6.
[68] Ex. xx, 18-22.
[69] Ex. xxiv, 9-10.
[70] Isa. vi, 1-5.
[71] Matt. iii, 16-17; Mark i, 11.
[72] Matt. xvii, 1-5; Luke ix, 35.
[73] Acts vii, 54-60.
[74] Book of Mormon, Ether iii.
[75] Book of Mormon, III Nephi xi-xxviii.
[76] See page 9.
[77] Doc. and Cov. lxxvi, 11-24.
[78] Doc. and Cov. cx, 1-4.
[79] Matt. iii, 16-17; Mark i, 9-11; Luke iii, 21-22.
[80] John xiv, 26; xv, 26.
[81] Acts vii, 55-56.
[82] See page 9.
[83] I Cor. viii, 6; John i, 1-14; Matthew iv, 10; I Tim. iii, 16; I
John v, 7; Mosiah xv, 1, 2.
[84] See Note 11.
[85] John x, 30, 38; xvii, 11, 22.
[86] III Nephi xi, 27, 36; xxviii, 10; see also Alma xi, 44.
[87] John xvii, 11-21.
[88] John xiv, 9-11.
[89] John xvii, 5.
[90] John i, 3; Heb. i, 2; Eph. iii, 9; Col. i, 16.
[91] John xx, 14-15, 19-20, 26-27; xxi, 1-14; Matt, xxviii, 9; Luke
xxiv, 15-31, 36-44.
[92] Acts i, 9-11.
[93] Heb. i, 3; Col. i, 15; II Cor. iv, 4.
[94] Genesis i, 26-27; James iii, 8-9.
[95] Doc. and Cov. cxxx, 22.
[96] I Nephi iv, 6; xi, 8; Mos. xiii, 5. Acts ii, 4; viii, 29; x, 19; Rom.
viii, 10, 26; I Thess. v, 19.
[97] Matt, iii, 16; xii, 28; I Nephi xiii, 12.
[98] John xiv, 16.
[99] John xv, 26; xvi, 13.
[100] Doc. and Cov. cxxx, 22.
[101] I Nephi xi, 11.
[102] Neh. ix, 30; Isa. xlii, 1; Acts x, 19; Alma xii, 3; Doc. and
Cov. cv, 36; xcvii, 1.
[103] John xvi, 13; I Nephi x, 19; Doc. and Cov. xxxv, 13; 1, 10.
[104] Gen. i, 2; Job xxvi, 13; Psalms civ, 30; Doc. and Cov. xxix,
31.
[105] John xv, 26; Acts v, 32; xx, 23; I Cor. ii, 11; xii, 3; III Nephi
xi, 32.
[106] For a fuller treatment of the Holy Ghost, His personality and
attributes, see Lecture viii, p. 162.
[107] Gen. xi, 5.
[108] Gen. xvii, 1, 22.
[109] Acts xv, 18; see also Pearl of Great Price: Moses i, 6, 35; I
Nephi ix, 6.
[110] Deut. iv, 31; II Chron. xxx, 9; Exo. xxxiv, 6; Neh. ix, 17, 31;
Psalms cxvi, 5; ciii, 8; lxxxvi, 15; Jer. xxxii, 18; Exo. xx, 6.
[111] Exo. xx, 5; Deut. vii, 21; x, 17; Psa. vii, 11.
[112] Exo. xx, 5; xxxiv, 14; Deut. iv, 24; vi, 14, 15; Josh. xxiv, 19,
20.
[113] See Note 12.
[114] See Note 6.
[115] Exo. xx, 3.
[116] See Note 7.
[117] See Note 8.
[118] See Note 9.
[119] See Note 1.
[120] Genesis ii, 17; Pearl of Great Price, Moses ii, 27-29; iii, 15-
17.
[121] Pearl of Great Price, Moses iii, 17.
[122] Doctrine and Covenants, xxix, 35.
[123] Genesis iv, 7.
[124] II Nephi ii, 16 and 27; x, 23. See also Alma iii, 26; xii, 31;
xxix, 4, 5; xxx, 9; Hel. xiv, 30.
[125] Alma iii, 26-27.
[126] Helaman xiv, 30-31.
[127] Moses iv. 1; see also Abraham iii, 27-28; and Jesus the
Christ, ch. ii.
[128] Matt. x, 15; xi, 22; II Peter ii, 9; iii, 7; I John iv, 17.
[129] Matt. xii, 36.
[130] Zech. viii, 17.
[131] Rev. xx, 12, 13.
[132] Job xlii, 10-17.
[133a] Numbers xii, 1-2; 10-15; xv, 32-36; xvi; xxi, 4-6; I Sam. vi,
19; II Sam. vi, 6-7; Acts v, 1-11.
[133b] John v, 22-27; Acts x, 42; xvii, 31; Rom. ii, 16; II Cor. v,
10; II Tim. iv, 1, 8; Doc. and Cov. cxxxiii, 2.
[134] John v, 22.
[135] Acts x, 42.
[136] Dan. vii, 9; II Thess. i, 7, 8; III Nephi xxvi, 3-5; Doc. and
Cov. lxxvi, 31-49; 103-106.
[137] Matt. xxv, 31-46; Doc. and Cov. i, 9-12.
[138] Acts x, 34, 35; Rom. ii, 11; Eph. vi, 9; Colos. iii, 25.
[139] II Tim. iv, 8.
[140] I John iii, 4.
[141] See Note 2.
[142] Pearl of Great Price: Moses iv, 4; Genesis iii.
[143] II Nephi ix, 25-26.
[144] The same, paragraph 27.
[145] Rom. ii, 12.
[146] Doc. and Cov. lxxvi, 72.
[147] Doc. and Cov. xiv, 54. See p. 404, Note 4.
[148] Doc. and Cov. lxxvi, 82-85; lxxxii, 21; civ, 9; lxiii, 17; II
Nephi i, 13; ix, 27; xxviii, 23.
[149] Doc. and Cov. lxxvi, 36, 44; Jacob vi, 10; Alma xii, 16-17;
III Nephi xxvii, 11-12.
[150] See Doc. and Cov. lxxvi, 26, 32, 43.
[151] Doc. and Cov. cxxxii, 27.
[152] John xvii, 12; II Thess. ii, 3; Doc. and Cov. lxxvi, 32.
[153] Doc. and Cov. lxxvi, 45-48.
[154] Doc. and Cov. lxxvi, 38-39.
[155] Doc. and Cov. xix, 6-12; lxxvi, 36, 44.
[156] Doc. and Cov. xix, 10-12.
[157] I Peter iii, 18-20; iv, 6; Doc. and Cov. lxxvi, 73. See p. 119.
[158] Doc. and Cov. lxxvi, 44.
[159] Matt. xviii, 8; xxv, 41, 46; II Thess. i, 9; Mark iii, 29; Jude 7.
[160] Revelation given March, 1830; Doc. and Cov. xix, 4-12.
[161] Job i, 6-22; ii, 1-7; Zech. iii, 1-2.
[162] Matt. iv, 5, 8, 11; I Peter v, 8.
[163] Matt. xii, 24.
[164] Doc. and Cov. lxxvi, 26.
[165] II Cor. vi, 15.
[166] Rev. xii, 9; xx, 2.
[167] Doc. and Cov. lxxvi, 25-27.
[168] Doc. and Cov. xxix, 36-37; see also Pearl of Great Price:
Moses iv, 3-7; Abraham iii, 27-28; Jesus the Christ, pp. 8, 9.
[169] Genesis iii, 4-5, and Pearl of Great Price: Moses iv, 6-11.
[170] Pearl of Great Price: Moses v, 29-33.
[171] Luke xiii, 16; Job i.
[172] John xii, 31; xvi, 11.
[173] Rev. xx, 1-10.
[174] Read Genesis, chapters ii and iii; Pearl of Great Price: Moses
iii, iv: Abraham v, 7-21.
[175] Genesis i, 26; Pearl of Great Price: Moses ii, 27.
[176] See Note 3.
[177] Genesis ii, 8-9.
[178] Genesis ii, 18; Pearl of Great Price: Moses iii, 18, 21-24.
[179] Genesis i, 28; Pearl of Great Price: Moses ii, 28; Abraham iv,
28.
[180] Pearl of Great Price: Moses iii, 16-17; see also Genesis ii,
16-17.
[181] I Timothy ii, 14. See Note 8.
[182] II Nephi ii, 25.
[183] Gen. iii, 22-24; Pearl of Great Price: Moses iv, 31.
[184] Alma xlii, 3-5.
[185] See Note 4.
[186] Pearl of Great Price: Moses v 10-11; see Note 6.
[187] Pearl of Great Price: Moses i 39; see Note 7.
[188] Pearl of Great Price: Moses iv, 6.
[189] See Lecture iv, p. 76.
[190] See Note 5.
[191] Romans v, 11.
[192] Romans v, 10-11.
[193] Standard Dictionary, under propitiation.
[194] See Note 1.
[195] Pres. John Taylor, Mediation and Atonement, pp. 148-149.
[196] Lev. xvi, 20-22.
[197] Lev. iv.
[198] See page 70.
[199] Matt. xxvi, 53-54; John x, 17-18.
[200] Doc. and Cov. xix, 16-19. See Jesus the Christ, pp. 610-
614.
[201] I Cor. xv, 29. See Lectures vi and vii.
[202] Doc. and Cov. cxxvii, 4-9; cxxviii.
[203] John x, 17-18. See Jesus the Christ, pp. 22, 23, 81, 418.
[204] John v, 26-27.
[205] Matt. xxvi, 53-54.
[206] Luke xxiii, 34.
[207] John iii, 16-17.
[208] I John iv, 9. See Jesus the Christ, chs. ii and iii.
[209] Pres. John Taylor, in Mediation and Atonement, p. 97.
[210] See page 71. Moses v, 9-11.—For general treatment see
Jesus the Christ, ch. v. See also Note 6.
[211] Pearl of Great Price: Moses vi, 51-68.
[212] Deut. xviii, 15, 17-19.
[213] Job xix, 25-27.
[214] Psalms ii, 1-12.
[215] Zech. ix, 9; xii, 10; xiii, 6.
[216] Isaiah vii, 14; ix, 6-7.
[217] Micah v, 2.
[218] Matt. iii, 11.
[219] Luke xxiv, 27.
[220] Luke xxiv, 45-46. See Jesus the Christ, pp. 685-690.
[221] I Peter i, 19-20.
[222] Romans iii, 25.
[223] See Rom. xvi, 25-26; Eph. iii, 9-11; Col. i, 24-26; II Tim. i,
8-10; Titus i, 2-3; Rev. xiii, 8.
[224] Ether iii, 13-14; see also xiii, 10-11.
[225] Ether iii, 14; read also 8-16. See Note 12, p. 53.
[226] I Nephi x, 3-11.
[227] I Nephi xi, 14-35; see also II Nephi ii, 3-21; xxv, 20-27;
xxvi, 24.
[228] II Nephi vi, 8-10; ix, 5-6.
[229] Mosiah iii, 5-27; iv, 1-8.
[230] Mosiah xv, 6-9; xvi.
[231] Alma vii, 9-14.
[232] Alma xi, 35-44.
[233] Hela. xiv, 2-8.
[234] Hela. xiv, 2-5; 21-27.
[235] III Nephi i, 5-21; viii, 3-25.
[236] III Nephi xi, 1-17. See Jesus the Christ, ch. xxxix.
[237] See Doc. and Cov. vi, 21; xiv, 9; xviii, 10-12; xix, 1-2, 24;
xxi, 9; xxix, 1; xxxiii; xxxiv, 1-3; xxxv, 1-2; xxxviii, 1-5; xxxix, 1-3;
xlv, 3-5; xlvi, 13-14; lxxvi, 1-4, 12-14, 19-24, 68; xciii, 1-6, 12-17,
38.
[238] Doc. and Cov. xxxv, 1-2.
[239] See Note 2.
[240] John xi, 25.
[241] I Cor. xv, 20; see Acts xxvi, 23.
[242] John v, 28-29.
[243] Doc. and Cov. lxxvi, 17.
[244] Acts xxiv, 15.
[245] I Cor. xv, 22.
[246] Rev. xx, 12-13.
[247] Rom. v, 18.
[248] I Tim. ii, 5-6.
[249] I John ii, 2.
[250] Mos. iv, 7.
[251] Doc. and Cov. lxxvi, 42.
[252] Moroni viii, 19-22.
[253] Moroni viii, 8-12.
[254] Doc. and Cov. xxix, 46-47.
[255] Mediation and Atonement, page 148. See Note 3.
[256] Rom. iii, 23.
[257] I John i, 8.
[258] Heb. v, 9.
[259] Rom. ii, 6-11.
[260] Mark xvi, 16.
[261] Mosiah iii, 11-12.
[262] Doc. and Cov. lxxvi, 50-70.
[263] Doc. and Cov. lxxvi, 71-80.
[264] Doc. and Cov. lxxvi, 81-86.
[265] The same, paragraphs 89-90.
[266] See page 62; also pages 416-422.
[267] Heb. xi, 1.
[268] See James ii, 19.
[269] See Mark v, 1-18; also Matt. viii, 28-34.
[270] See Mark i, 24.
[271] Mark iii, 8-11. See Jesus the Christ, pp. 181, 310-312.
[272] Doc. and Cov. lxxvi, 25-27.
[273] Matt. xvi, 15-16; see also Mark viii, 29; Luke ix, 20.
[274] Lecture II, page 28.
[275] Doc. and Cov., Lectures on Faith, iii, 13-18.
[276] Longfellow.
[277] See Note 1.
[278] See Acts ii.
[279] Exo. xiv, 22-29; Heb. xi, 29.
[280] Josh. vi, 20; Heb. xi, 30.
[281] Josh. x, 12.
[282] Heb. xi, 32-34; Doc. and Cov., Lecture i, 20.
[283] Judges vi, 11.
[284] Judges iv, 6.
[285] Judges xiii, 24.
[286] Judges xi, 1; xii, 7.
[287] I Sam. xvi, 1, 13; xvii, 45.
[288] I Sam. i, 20; xii, 20.
[289] Alma xiv, 26-29; Doc. and Cov., Lecture on Faith, i, 19.
[290] Helaman v, 20-52; Doc. and Cov., Lecture on Faith, i, 19.
[291] Matt. viii, 23-27; Mark iv, 36-41; Luke viii, 22-25; Matt. xiv,
24-32; Mark vi, 47-51, John vi, 17-21.
[292] Matt. xxi, 17-21; Mark xi, 12-13, 20-24; Book of Jacob iv, 6.
[293] Matt. xvii, 20; Mark xi, 23-24; Ether xii, 30; Jacob iv, 6;
Doc. and Cov., Lecture on Faith, i, 19.
[294] Luke xiii, 11; xiv, 2; xvii, 11; xxii, 50; Matt. viii, 2, 5, 14, 16,
etc.
[295] Matt. viii, 28; xvii, 18; Mark i, 23.
[296] Luke vii, 11-16; John xi, 43-45; I Kings xvii, 17-24.
[297] Matt. xvii, 20; Mark ix, 23; Eph. vi, 16; I John v, 4.
[298] Joshua vii-viii.
[299] Matt. xiii, 58; Mark vi, 5 6.
[300] Heb. xi, 35-38; see also Doc. and Cov., Lectures on Faith,
vi.
[301] Heb. xi, 6.
[302] Mark xvi, 16.
[303] John iii, 36. See also John iii, 15; iv, 42; v, 24; xi, 25; Gal. ii,
20; I Nephi x, 6, 17; II Nephi xxv, 25; xxvi, 8; Enos i, 8; Mos. iii,
17; III Nephi xxvii, 19; Hel. v, 9; Doc. and Cov. xiv, 8.
[304] Acts ii, 38; x, 42; xvi, 31; Rom. x, 9; Heb. iii, 19; xi, 6; I
Pet. i, 9; I John iii, 23; v, 14.
[305] Matt. xvi, 17; John vi, 44, 65; Eph. ii, 8; I Cor. xii, 9; Rom.
xii, 3; Moroni x, 11.
[306] See Rom. x, 17.
[307] Matt. vii, 21.
[308] John xiv, 21.
[309] James ii, 14-18.
[310] I John ii, 3-5.
[311] See I Nephi xv, 33; II Nephi xxix, 11; Mosiah v, 15; Alma
vii, 27; ix, 28; xxxvii, 32-34; xli, 3-5.
[312] Doc. and Cov. throughout.
[313] See Note 2.
[314] See Note 3.
[315] I John i, 8-9; see also Psalms xxxii, 5; xxxviii, 18; Mosiah
xxvi, 29-30.
[316] Prov. xxviii, 13.
[317] Doc. and Cov. lxiv, 7.
[318] Doc. and Cov. lviii, 43.
[319] Matt. vi, 12; see also Luke xi, 4.
[320] Matt. vi, 14-15; III Nephi xiii, 14-15.
[321] Luke xvii, 3-4.
[322] Matt. vii, 2; Mark iv, 24; Luke vi, 38.
[323] Matt. xviii, 23-35. See Jesus the Christ, pp. 392-395.
[324] Matt. v, 23-24: III Nephi xii, 23-24.
[325] Doc. and Cov. lxiv, 9-10.
[326] Pearl of Great Price: Moses vi, 52.
[327] Pearl of Great Price: Moses v, 6-8.
[328] III Nephi xxvii, 5-7.
[329] II Cor. vii. 10.
[330] Eccl. vii, 20; see also Rom. iii, 10; I John i, 8.
[331] Isa. iv, 6-7; see also II Nephi ix, 24; Alma v, 31-36, 49-56;
ix, 12; Doc. and Cov. i, 32-33; xix, 4; xx, 29; xxix, 44; cxxxiii, 16.
[332] Matt. iii, 2.
[333] Mark i, 15.
[334] Luke xiii, 3.
[335] Acts xvii, 30.
[336] Doc. and Cov. xx, 29.
[337] Matt. iii, 7-8; Acts xxvi, 20.
[338] Acts xi, 18.
[339] Rom. ii, 4; see also II Tim. ii, 25.
[340] Gen. vi, 3; Doc. and Cov. i, 33.
[341] Doc. and Cov. i, 31-33.
[342] Alma xii, 24; xxxiv, 32; xiii, 4.
[343] I Peter iii, 19-20.
[344] Doc. and Cov. lxxvi, 73-74. See Jesus the Christ, ch. xxxvi.
[345] Alma xxxiv, 33.
[346] Alma xxxiv, 32-35.
[347] Alma vii, 15.
[348] Acts ii, 37-38.
[349] Moroni viii, 25.
[350] Pearl of Great Price: Moses vi, 52-65.
[351] Mark i, 4; Luke iii, 3.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookname.com

Pro Data Visualization using R and JavaScript 1st Edition Tom Barker

  • 1.
    Pro Data Visualizationusing R and JavaScript 1st Edition Tom Barker pdf download https://ebookname.com/product/pro-data-visualization-using-r-and- javascript-1st-edition-tom-barker/ Get Instant Ebook Downloads – Browse at https://ebookname.com
  • 2.
    Instant digital products(PDF, ePub, MOBI) available Download now and explore formats that suit you... A Primer in Biological Data Analysis and Visualization Using R Gregg Hartvigsen https://ebookname.com/product/a-primer-in-biological-data- analysis-and-visualization-using-r-gregg-hartvigsen/ Visual Data Mining Techniques and Tools for Data Visualization and Mining 1st Edition Tom Soukup https://ebookname.com/product/visual-data-mining-techniques-and- tools-for-data-visualization-and-mining-1st-edition-tom-soukup/ Data Visualization with Python and JavaScript Scrape Clean Explore Transform Your Data 1st Edition Kyran Dale https://ebookname.com/product/data-visualization-with-python-and- javascript-scrape-clean-explore-transform-your-data-1st-edition- kyran-dale/ Merciless Zebra Romantic Suspense Mary Burton https://ebookname.com/product/merciless-zebra-romantic-suspense- mary-burton/
  • 3.
    Milestone Documents inAmerican History Exploring the Primary Sources That Shaped America 1st Edition Paul Finkelman https://ebookname.com/product/milestone-documents-in-american- history-exploring-the-primary-sources-that-shaped-america-1st- edition-paul-finkelman/ Knowledge Is Pleasure Florence Ayscough in Shanghai 1st Edition Lindsay Shen https://ebookname.com/product/knowledge-is-pleasure-florence- ayscough-in-shanghai-1st-edition-lindsay-shen/ Transcription Factors 1st Edition Joseph Locker https://ebookname.com/product/transcription-factors-1st-edition- joseph-locker/ Handbook of SCADA control systems security 1st Edition Radvanovsky https://ebookname.com/product/handbook-of-scada-control-systems- security-1st-edition-radvanovsky/ Jini and JavaSpaces Application Development 1st Edition Robert Flenner https://ebookname.com/product/jini-and-javaspaces-application- development-1st-edition-robert-flenner/
  • 4.
    Quality Management 1stEdition Graeme Knowles https://ebookname.com/product/quality-management-1st-edition- graeme-knowles/
  • 6.
    For your convenienceApress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to access them.
  • 7.
    v Contents at aGlance About the Author���������������������������������������������������������������������������������������������������������������xiii About the Technical Reviewer��������������������������������������������������������������������������������������������xv Acknowledgments������������������������������������������������������������������������������������������������������������xvii Chapter 1: Background ■ ■ ������������������������������������������������������������������������������������������������������1 Chapter 2: R Language Primer ■ ■ ����������������������������������������������������������������������������������������25 Chapter 3: A Deeper Dive into R ■ ■ ��������������������������������������������������������������������������������������47 Chapter 4: Data Visualization with D3 ■ ■ �����������������������������������������������������������������������������65 Chapter 5: Visualizing Spatial Data from Access Logs ■ ■ ����������������������������������������������������85 Chapter 6: Visualizing Data Over Time ■ ■ ��������������������������������������������������������������������������111 Chapter 7: Bar Charts ■ ■ ����������������������������������������������������������������������������������������������������133 Chapter 8: Correlation Analysis with Scatter Plots ■ ■ �������������������������������������������������������157 Chapter 9: Visualizing the Balance of Delivery and Quality with ■ ■ Parallel Coordinates������������������������������������������������������������������������������������������������������177 Index���������������������������������������������������������������������������������������������������������������������������������193
  • 8.
    1 Chapter 1 Background There isa new concept emerging in the field of web development: using data visualizations as communication tools. This concept is something that is already well established in other fields and departments. At the company where you work, your finance department probably uses data visualizations to represent fiscal information both internally and externally; just take a look at the quarterly earnings reports for almost any publicly traded company. They are full of charts to show revenue by quarter, or year over year earnings, or a plethora of other historic financial data. All are designed to show lots and lots of data points, potentially pages and pages of data points, in a single easily digestible graphic. Compare the bar chart in Google’s quarterly earnings report from back in 2007 (see Figure 1-1) to a subset of the data it is based on in tabular format (see Figure 1-2). Figure 1-1. Google Q4 2007 quarterly revenue shown in a bar chart
  • 9.
    Chapter 1 ■Background 2 The bar chart is imminently more readable. We can clearly see by the shape of it that earnings are up and have been steadily going up each quarter. By the color-coding, we can see the sources of the earnings; and with the annotations, we can see both the precise numbers that those color-coding represent and what the year over year percentages are. With the tabular data, you have to read labels on the left, line up the data on the right with those labels, do your own aggregation and comparison, and draw your own conclusions. There is a lot more upfront work needed to take in the tabular data, and there exists the very real possibility of your audience either not understanding the data (thus creating their own incorrect story around the data) or tuning out completely because of the sheer amount of work needed to take in the information. It’s not just the Finance department that uses visualizations to communicate dense amounts of data. Maybe your Operations department uses charts to communicate server uptime, or your Customer Support department uses graphs to show call volume. Whatever the case, it’s about time Engineering and Web Development got on board with this. As a department, group, and industry we have a huge amount of relevant data that is important for us to first be aware of so that we can refine and improve what we do; but also to communicate out to our stakeholders, to demonstrate our successes or validate resource needs, or to plan tactical roadmaps for the coming year. Before we can do this, we need to understand what we are doing. We need to understand what data visualizations are, a general idea of their history, when to use them, and how to use them both technically and ethically. What Is Data Visualization? OK, so what exactly is data visualization? Data visualization is the art and practice of gathering, analyzing, and graphically representing empirical information. They are sometimes called information graphics, or even just charts and graphs. Whatever you call it, the goal of visualizing data is to tell the story in the data. Telling the story is predicated on understanding the data at a very deep level, and gathering insight from comparisons of data points in the numbers. There exists syntax for crafting data visualizations, patterns in the form of charts that have an immediately known context. We devote a chapter to each of the significant chart types later in the book. Time Series Charts Time series charts show changes over time. See Figure 1-3 for a time series chart that shows the weighted popularity of the keyword “Data Visualization” from Google Trends (http://www.google.com/trends/). Figure 1-2. Similar earnings data in tabular form
  • 10.
    Chapter 1 ■Background 3 Note that the vertical y axis shows a sequence of numbers that increment by 20 up to 100. These numbers represent the weighted search volume, where 100 is the peak search volume for our term. On the horizontal x axis, we see years going from 2007 to 2012. The line in the chart represents both axes, the given search volume for each date. From just this small sample size, we can see that the term has more than tripled in popularity, from a low of 29 in the beginning of 2007 up to the ceiling of 100 by the end of 2012. Bar Charts Bar charts show comparisons of data points. See Figure 1-4 for a bar chart that demonstrates the search volume by country for the keyword “Data Visualization,” the data for which is also sourced from Google Trends. Figure 1-3. Time series of weighted trend for the keyword “Data Visualization” from Google Trends Search Volume for Keyword ‘Data Visualization’ by Region from Google Trends Spain France Germany China United Kingdom Netherlands Australia Canada India United States 0 20 40 60 80 100 Figure 1-4. Google Trends breakdown of search volume by region for keyword “Data Visualization”
  • 11.
    Chapter 1 ■Background 4 We can see the names of the countries on the y axis and the normalized search volume, from 0 to 100, on the x axis. Notice, though, that no time measure is given. Does this chart represent data for a day, a month, or a year? Also note that we have no context for what the unit of measure is. I highlight these points not to answer them but to demonstrate the limitations and pitfalls of this particular chart type. We must always be aware that our audience does not bring the same experience and context that we bring, so we must strive to make the stories in our visualizations as self evident as possible. Histograms Histograms are a type of bar chart used to show the distribution of data or how often groups of information appear in the data. See Figure 1-5 for a histogram that shows how many articles the New York Times published each year, from 1980 to 2012, that related in some way to the subject of data visualization. We can see from the chart that the subject has been ramping up in frequency since 2009. 1980 1985 1990 1995 2000 2005 2010 Year Distribution of Articles about Data Visualization by the NY Times Frequency 20 15 10 5 0 Figure 1-5. Histogram showing distribution of NY Times articles about data visualization
  • 12.
    Chapter 1 ■Background 5 In this example, the states with the darker shades indicate a greater interest in the search term. (This data also is derived from Google Trends, for which interest is demonstrated by how frequently the term “Data Visualization” is searched for on Google.) Scatter Plots Like bar charts, scatter plots are used to compare data, but specifically to suggest correlations in the data, or where the data may be dependent or related in some way. See Figure 1-7, in which we use data from Google Correlate, (http://www.google.com/trends/correlate), to look for a relationship between search volume for the keyword “What is Data Visualization” and the keyword “How to Create Data Visualization.” Figure 1-6. Data map of U.S. states by interest in “Data Visualization” (data from Google Trends) Data Maps Data maps are used to show the distribution of information over a spatial region. Figure 1-6 shows a data map used to demonstrate the interest in the search term “Data Visualization” broken out by U.S. states.
  • 13.
    Chapter 1 ■Background 6 This chart suggests a positive correlation in the data, meaning that as one term rises in popularity the other also rises. So what this chart suggests is that as more people find out about data visualization, more people want to learn how to create data visualizations. The important thing to remember about correlation is that it does not suggest a direct cause—correlation is not causation. History If we’re talking about the history of data visualization, the modern conception of data visualization largely started with William Playfair. William Playfair was, among other things, an engineer, an accountant, a banker, and an all-around Renaissance man who single handedly created the time series chart, the bar chart, and the bubble chart. Playfair’s charts were published in the late eighteenth century into the early nineteenth century. He was very aware that his innovations were the first of their kind, at least in the realm of communicating statistical information, and he spent a good amount of space in his books describing how to make the mental leap to seeing bars and lines as representing physical things like money. Playfair is best known for two of his books: the Commercial and Political Atlas and the Statistical Breviary. The Commercial and Political Atlas was published in 1786 and focused on different aspects of economic data from national debt, to trade figures, and even military spending. It also featured the first printed time series graph and bar chart. Figure 1-7. Scatter plot examining the correlation between search volume for terms related to “Data Visualization” , “How to Create” and “What is”
  • 14.
    Chapter 1 ■Background 7 His Statistical Breviary focused on statistical information around the resources of the major European countries of the time and introduced the bubble chart. Playfair had several goals with his charts, among them perhaps stirring controversy, commenting on the diminishing spending power of the working class, and even demonstrating the balance of favor in the import and export figures of the British Empire, but ultimately his most wide-reaching goal was to communicate complex statistical information in an easily digested, universally understood format. Note ■ ■ Both books are back in print relatively recently, thanks to Howard Wainer, Ian Spence, and Cambridge University Press. Playfair had several contemporaries, including Dr. John Snow, who made my personal favorite chart: the cholera map. The cholera map is everything an informational graphic should be: it was simple to read; it was informative; and, most importantly, it solved a real problem. The cholera map is a data map that outlined the location of all the diagnosed cases of cholera in the outbreak of London 1854 (see Figure 1-8). The shaded areas are recorded deaths from cholera, and the shaded circles on the map are water pumps. From careful inspection, the recorded deaths seemed to radiate out from the water pump on Broad Street. Figure 1-8. John Snow’s cholera map
  • 15.
    Chapter 1 ■Background 8 Dr. Snow had the Broad Street water pump closed, and the outbreak ended. Beautiful, concise, and logical. Another historically significant information graphic is the Diagram of the Causes of Mortality in the Army in the East, by Florence Nightingale and William Farr. This chart is shown in Figure 1-9. Figure 1-9. Florence Nightingale and William Farr’s Diagram of the Causes of Mortality in the Army in the East Nightingale and Farr created this chart in 1856 to demonstrate the relative number of preventable deaths and, at a higher level, to improve the sanitary conditions of military installations. Note that the Nightingale and Farr visualization is a stylized pie chart. Pie charts are generally a circle representing the entirety of a given data set with slices of the circle representing percentages of a whole. The usefulness of pie charts is sometimes debated because it can be argued that it is harder to discern the difference in value between angles than it is to determine the length of a bar or the placement of a line against Cartesian coordinates. Nightingale seemingly avoids this pitfall by having not just the angle of the wedge hold value but by also altering the relative size of the slices so they eschew the confines of the containing circle and represent relative value. All the above examples had specific goals or problems that they were trying to solve. Note ■ ■  A rich comprehensive history is beyond the scope of this book, but if you are interested in a thoughtful, incredibly researched analysis, be sure to read Edward Tufte’s The Visual Display of Quantitative Information. Modern Landscape Data visualization is in the midst of a modern revitalization due in large part to the proliferation of cheap storage space to store logs, and free and open source tools to analyze and chart the information in these logs.
  • 16.
    Chapter 1 ■Background 9 From a consumption and appreciation perspective, there are websites that are dedicated to studying and talking about information graphics. There are generalized sites such as FlowingData that both aggregate and discuss data visualizations from around the web, from astrophysics timelines to mock visualizations used on the floor of Congress. The mission statement from the FlowingData About page (http://flowingdata.com/about/) is appropriately the following: “FlowingData explores how designers, statisticians, and computer scientists use data to understand ourselves better—mainly through data visualization.” There are more specialized sites such as quantifiedself.com that are focused on gathering and visualizing information about oneself. There are even web comics about data visualization, the quintessential one being xkcd.com, run by Randall Munroe. One of the most famous and topical visualizations that Randall has created thus far is the Radiation Dose Chart. We can see the Radiation Dose Chart in Figure 1-10 (it is available in high resolution here: http://xkcd.com/radiation/). Figure 1-10. Radiation Dose Chart, by Randall Munroe. Note that the range in scale being represented in this visualization as a single block in one chart is exploded to show an entirely new microcosm of context and information. This pattern is repeated over and over again to show an incredible depth of information
  • 17.
    Chapter 1 ■Background 10 This chart was created in response to the Fukushima Daiichi nuclear disaster of 2011, and sought to clear up misinformation and misunderstanding of comparisons being made around the disaster. It did this by demonstrating the differences in scale for the amount of radiation from sources such as other people or a banana, up to what a fatal dose of radiation ultimately would be—how all that compared to spending just ten minutes near the Chernobyl meltdown. Over the last quarter of a century, Edward Tufte, author and professor emeritus at Yale University, has been working to raise the bar of information graphics. He published groundbreaking books detailing the history of data visualization, tracing its roots even further back than Playfair, to the beginnings of cartography. Among his principles is the idea to maximize the amount of information included in each graphic—both by increasing the amount of variables or data points in a chart and by eliminating the use of what he has coined chartjunk. Chartjunk, according to Tufte, is anything included in a graph that is not information, including ornamentation or thick, gaudy arrows. Tufte also invented the sparkline, a time series chart with all axes removed and only the trendline remaining to show historic variations of a data point without concern for exact context. Sparklines are intended to be small enough to place in line with a body of text, similar in size to the surrounding characters, and to show the recent or historic trend of whatever the context of the text is. Why Data Visualization? In William Playfair’s introduction to the Commercial and Political Atlas, he rationalizes that just as algebra is the abbreviated shorthand for arithmetic, so are charts a way to “abbreviate and facilitate the modes of conveying information from one person to another.” Almost 300 years later, this principle remains the same. Data visualizations are a universal way to present complex and varied amounts of information, as we saw in our opening example with the quarterly earnings report. They are also powerful ways to tell a story with data. Imagine you have your Apache logs in front of you, with thousands of lines all resembling the following: 127.0.0.1 - - [10/Dec/2012:10:39:11 +0300] GET / HTTP/1.1 200 468 - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty) 127.0.0.1 - - [10/Dec/2012:10:39:11 +0300] GET /favicon.ico HTTP/1.1 200 766 - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty) Among other things, we see IP address, date, requested resource, and client user agent. Now imagine this repeated thousands of times—so many times that your eyes kind of glaze over because each line so closely resembles the ones around it that it’s hard to discern where each line ends, let alone what cumulative trends exist within. By using some analysis and visualization tools such as R, or even a commercial product such as Splunk, we can artfully pull out all kinds of meaningful and interesting stories out of this log, from how often certain HTTP errors occur and for which resources, to what our most widely used URLs are, to what the geographic distribution of our user base is. This is just our Apache access log. Imagine casting a wider net, pulling in release information, bugs and production incidents. What insights we could gather about what we do: from how our velocity impacts our defect density to how our bugs are distributed across our feature sets. And what better way to communicate those findings and tell those stories than through a universally digestible medium, like data visualizations? The point of this book is to explore how we as developers can leverage this practice and medium as part of continual improvement—both to identify and quantify our successes and opportunities for improvements, and more effectively communicate our learning and our progress. Tools There are a number of excellent tools, environments, and libraries that we can use both to analyze and visualize our data. The next two sections describe them.
  • 18.
    Chapter 1 ■Background 11 Languages, Environments, and Libraries The tools that are most relevant to web developers are Splunk, R, and the D3 JavaScript library. See Figure 1-11 for a comparison of interest over time for them (from Google Trends). Figure 1-11. Google Trends analysis of interest over time in Splunk, R, and D3 From the figure we can see that R has had a steady consistent amount of interest since 200; Splunk had an introduction to the chart around 2005, had a spike of interest around 2006, and had steady growth since then. As for D3, we see it just start to peak around 2011 when it was introduced and its predecessor Protovis was sunsetted. Let’s start with the tool of choice for many developers, scientists, and statisticians: the R language. We have a deep dive into the R environment and language in the next chapter, but for now it’s enough to know that it is an open source environment and language used for statistical analysis and graphical display. It is powerful, fun to use, and, best of all, it is free. Splunk has seen a tremendous steady growth in interest over the last few years—and for good reason. It is easy to use once it’s set up, scales wonderfully, supports multiple concurrent users, and puts data reporting at the fingertips of everyone. You simply set it up to consume your log files; then you can go into the Splunk dashboard and run reports on key values within those logs. Splunk creates visualizations as part of its reporting capabilities, as well as alerting. While Splunk is a commercial product, it also offers a free version, available here: http://www.splunk.com/download. D3 is a JavaScript library that allows us to craft interactive visualizations. It is the official follow-up to Protovis. Protovis was a JavaScript library created in 2009 by Stanford University’s Stanford Visualization Group. Protovis was sunsetted in 2011, and the creators unveiled D3. We explore the D3 library at length in Chapter 4. Analysis Tools Aside from the previously mentioned languages and environments, there are a number of analysis tools available online. A great hosted tool for analysis and research is Google Trends. Google Trends allows you to compare trends on search terms. It provides all kinds of great statistical information around those trends, including comparing their relative search volume (see Figure 1-12), the geographic area those trends are coming from (see Figure 1-13), and related keywords.
  • 19.
    Chapter 1 ■Background 12 Figure 1-13. Google Trends data map showing geographic location where interest in the key words is originating Figure 1-12. Google Trends for the terms “data scientist” and “computer scientist” over time; note the interest in the term “data scientist” growing rapidly from 2011 on to match the interest in the term “computer scientist”
  • 20.
    Chapter 1 ■Background 13 Another great tool for analysis is Wolfram|Alpha (http://wolframalpha.com). See Figure 1-14 for a screenshot of the Wolfram|Alpha homepage. Figure 1-14. Home page for Wolfram|Alpha Wolfram|Alpha is not a search engine. Search engines spider and index content. Wolfram|Alpha is instead a Question Answering (QA) engine that parses human readable sentences with natural language processing and responds with computed results. Say, for example, you want to search for the speed of light. You might go to the Wolfram|Alpha site and type in “What is the speed of light?” Remember that it uses natural language processing to parse your search query, not the keyword lookup. The results of this query can be seen in Figure 1-15. Wolfram|Alpha essentially looks up all the data it has around the speed of light and presents it in a structured, categorized fashion. You can also export the raw data for each result.
  • 21.
    Chapter 1 ■Background 14 Figure 1-15. Wolfram|Alpha results for query What is the speed of light Process Overview So we understand what data visualization is, have a high-level understanding of the history of it and an idea of the current landscape. We’re beginning to get an inkling about how we can start to use this in our world. We know some of the tools that are available to us to facilitate the analysis and creation of our charts. Now let’s look at the process involved.
  • 22.
    Chapter 1 ■Background 15 Creating data visualizations involves four core steps: 1. Identify a problem. 2. Gather the data. 3. Analyze the data. 4. Visualize the data. Let’s walk through each step in the process and re-create one of the previous charts to demonstrate the process. Identify a Problem The very first step is to identify a problem we want to solve. This can be almost anything—from something as profound and wide-reaching as figuring out why your bug backlog doesn’t seem to go down and stay down, to seeing what feature releases over a given period in time caused the most production incidents, and why. For our example, let’s re-create Figure 1-5 and try to quantify the interest in data visualization over time as represented by the number of New York Times articles on the subject. Gather Data We have an idea of what we want to investigate, so let’s dig in. If you are trying to solve a problem or tell a story around your own product, you would of course start with your own data—maybe your Apache logs, maybe your bug backlog, maybe exports from your project tracking software. Note ■ ■ If you are focusing on gathering metrics around your product and you don’t already have data handy, you need to invest in instrumentation.There are many ways to do this, usually by putting logging in your code.At the very least, you want to log error states and monitor those, but you may want to expand the scope of what you track to include for ­ debugging purposes while still respecting both your user’s privacy and your company’s privacy policy. In my book, Pro JavaScript ­ Performance: Monitoring and Visualization, I explore ways to track and visualize web and runtime performance. One important aspect of data gathering is deciding which format your data should be in (if you're lucky) or discovering which format your data is available in. We’ll next be looking at some of the common data formats in use today. JSON is an acronym that stands for JavaScript Object Notation. As you probably know, it is essentially a way to send data as serialized JavaScript objects. We format JSON as follows: [object]{ [attribute]: [value], [method] : function(){}, [array]: [item, item] } Another way to transfer data is in XML format. XML has an expected syntax, in which elements can have attributes, which have values, values are always in quotes, and every element must have a closing element. XML looks like this: parent attribute=value child attribute=valuenode data/child /parent Generally we can expect APIs to return XML or JSON to us, and our preference is usually JSON because as we can see it is a much more lightweight option just in sheer amount of characters used.
  • 23.
    Chapter 1 ■Background 16 But if we are exporting data from an application, it most likely will be in the form of a comma separated value file, or CSV. A CSV is exactly what it sounds like: values separated by commas or some other sort of delimiter: value1,value2,value3 value4,value5,value6 For our example, we’ll use the New York Times API Tool, available at http://prototype.nytimes.com/gst/ apitool/index.html. The API Tool exposes all the APIs that the New York Times makes available, including the Article Search API, the Campaign Finance API, and the Movie Review API. All we need to do is select the Article Search API from the drop-down menu, type in our search query or the phrase that we want to search for, and click “Make Request” . This queries the API and returns the data to us, formatted as JSON. We can see the results in Figure 1-16. Figure 1-16. The NY Times API Tool We can then copy and paste the returned JSON data to our own file or we could go the extra step to get an API key so that we can query the API from our own applications. For the sake of our example, we will save the JSON data to a file that we will name jsNYTimesData. The contents of the file will be structured like so: { offset: 0, results: [ { body: BODY COPY,
  • 24.
    Chapter 1 ■Background 17 byline: By AUTHOR, date: 20121011, title: TITLE, url: http://www.nytimes.com/foo.html }, { body: BODY COPY, byline: By AUTHOR, date: 20121021, title: TITLE, url: http://www.nytimes.com/bar.html } ], tokens: [ JavaScript ], total: 2 } Looking at the high-level JSON structure, we see an attribute named offset, an array named results, an array named tokens, and another attribute named total. The offset variable is for pagination (what page full of results we are starting with). The total variable is just what it sounds like: the number of results that are returned for our query. It’s the results array that we really care about; it is an array of objects, each of which corresponds to an article. The article objects have attributes named body, byline, date, title, and url. We now have data that we can begin to look at. That takes us to our next step in the process, analyzing our data. DATA SCRUBBING There is often a hidden step here, one that anyone who’s dealt with data knows about: scrubbing the data. Often the data is either not formatted exactly as we need it or, in even worse cases, it is dirty or incomplete. In the best-case scenario in which your data just needs to be reformatted or even concatenated, go ahead and do that, but be sure to not lose the integrity of the data. Dirty data has fields out of order, fields with obviously bad information in them—think strings in ZIP codes—or gaps in the data. If your data is dirty, you have several choices: You could drop the rows in question, but that can harm the integrity of the data—a good example • is if you are creating a histogram removing rows could change the distribution and change what your results will be. The better alternative is to reach out to whoever administers the source of your data and try and • get a better version if it exists. Whatever the case, if data is dirty or it just needs to be reformatted to be able to be imported into R, expect to have to scrub your data at some point before you begin your analysis. Analyze Data Having data is great, but what does it mean? We determine it through analysis. Analysis is the most crucial piece of creating data visualizations. It’s only through analysis that we can understand our data, and it is only through understanding it that we can craft our story to share with others.
  • 25.
    Chapter 1 ■Background 18 To begin analysis, let’s import our data into R. Don’t worry if you aren’t completely fluent in R; we do a deep dive into the language in the next chapter. If you aren’t familiar with R yet, don’t worry about coding along with the following examples: just follow along to get an idea of what is happening and return to these examples after reading Chapters 3 and 4. Because our data is JSON, let’s use an R package called rjson. This will allow us to read in and parse JSON with the fromJSON() function: library(rjson) json_data - fromJSON(paste(readLines(jsNYTimesData.txt), collapse=)) This is great, except the data is read in as pure text, including the date information. We can’t extract information from text because obviously text has no contextual meaning outside of being raw characters. So we need to iterate through the data and parse it to more meaningful types. Let's create a data frame (an array-like data type specific to R that we talk about next chapter), loop through our json_data object; and parse year, month, and day parts out of the date attribute. Let’s also parse the author name out of the byline, and check to make sure that if the author’s name isn’t present we substitute the empty value with the string “unknown”. df - data.frame() for(n in json_data$results){ year -substr(n$date, 0, 4) month - substr(n$date, 5, 6) day - substr(n$date, 7, 8) author - substr(n$byline, 4, 30) title - n$title if(length(author) 1){ author - unknown } Next, we can reassemble the date into a MM/DD/YYYY formatted string and convert it to a date object: datestamp -paste(month, /, day, /, year, sep=) datestamp - as.Date(datestamp,%m/%d/%Y) And finally before we leave the loop, we should add this newly parsed author and date information to a temporary row and add that row to our new data frame. newrow - data.frame(datestamp, author, title, stringsAsFactors=FALSE, check.rows=FALSE) df - rbind(df, newrow) } rownames(df) - df$datestamp Our complete loop should look like the following: df - data.frame() for(n in json_data$results){ year -substr(n$date, 0, 4) month - substr(n$date, 5, 6) day - substr(n$date, 7, 8) author - substr(n$byline, 4, 30) title - n$title
  • 26.
    Chapter 1 ■Background 19 if(length(author) 1){ author - unknown } datestamp -paste(month, /, day, /, year, sep=) datestamp - as.Date(datestamp,%m/%d/%Y) newrow - data.frame(datestamp, author, title, stringsAsFactors=FALSE, check.rows=FALSE) df - rbind(df, newrow) } rownames(df) - df$datestamp Note that our example assumes that the data set returned has unique date values. If you get errors with this, you may need to scrub your returned data set to purge any duplicate rows. Once our data frame is populated, we can start to do some analysis on the data. Let’s start out by pulling just the year from every entry, and quickly making a stem and leaf plot to see the shape of the data. Note ■ ■ John Tukey created the stem and leaf plot in his seminal work, Exploratory Data Analysis. Stem and leaf plots are quick, high-level ways to see the shape of data, much like a histogram. In the stem and leaf plot, we construct the “stem” column on the left and the “leaf” column on the right. The stem consists of the most significant unique elements in a result set. The leaf consists of the remainder of the values associated with each stem. In our stem and leaf plot below, the years are our stem and R shows zeroes for each row associated with a given year. Something else to note is that often alternating sequential rows are combined into a single row, in the interest of having a more concise visualization. First, we will create a new variable to hold the year information: yearlist - as.POSIXlt(df$datestamp)$year+1900 If we inspect this variable, we see that it looks something like this: yearlist [1] 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 2011 [30] 2011 2011 2011 2011 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2009 2009 2009 2009 2009 2009 2009 2008 2008 2008 2007 2007 2007 2007 2006 [59] 2006 2006 2006 2005 2005 2005 2005 2005 2005 2004 2003 2003 2003 2002 2002 2002 2002 2001 2001 2000 2000 2000 2000 2000 2000 1999 1999 1999 1999 [88] 1999 1999 1998 1998 1998 1997 1997 1996 1996 1995 1995 1995 1993 1993 1993 1993 1992 1991 1991 1991 1990 1990 1990 1990 1989 1989 1989 1988 1988 [117] 1988 1986 1985 1985 1985 1984 1982 1982 1981 That’s great, that’s exactly what we want: a year to represent every article returned. Next let’s create the stem and leaf plot: stem(yearlist) 1980 | 0 1982 | 00 1984 | 0000 1986 | 0 1988 | 000000
  • 27.
    Chapter 1 ■Background 20 1990 | 0000000 1992 | 00000 1994 | 000 1996 | 0000 1998 | 000000000 2000 | 00000000 2002 | 0000000 2004 | 0000000 2006 | 00000000 2008 | 0000000000 2010 | 000000000000000000000000000000 2012 | 0000000000000 Very interesting. We see a gradual build with some dips in the mid-1990s, another gradual build with another dip in the mid-2000s and a strong explosion since 2010 (the stem and leaf plot groups years together in twos). Looking at that, my mind starts to envision a story building about a subject growing in popularity. But what about the authors of these articles? Maybe they are the result of one or two very interested authors that have quite a bit to say on the subject. Let’s explore that idea and take a look at the author data that we parsed out. Let’s look at just the unique authors from our data frame: length(unique(df$author)) [1] 81 We see that there are 81 unique authors or combination of authors for these articles! Just out of curiosity, let’s take a look at the breakdown by author for each article. Let’s quickly create a bar chart to see the overall shape of the data (the bar chart is shown in Figure 1-17): plot(table(df$author), axes=FALSE) Figure 1-17. Bar chart of number of articles by author to quickly visualize
  • 28.
    Chapter 1 ■Background 21 We remove the x and y axes to allow ourselves to focus just on the shape of the data without worrying too much about the granular details. From the shape, we can see a large number of bars with the same value; these are authors who have written a single article. The higher bars are authors who have written multiple articles. Essentially each bar is a unique author, and the height of the bar indicates the number of articles they have written. We can see that although there are roughly five standout contributors, most authors have average one article. Note that we just created several visualizations as part of our analysis. The two steps aren’t mutually exclusive; we often times create quick visualizations to facilitate our own understanding of the data. It’s the intention with which they are created that make them part of the analysis phase. These visualizations are intended to improve our own understanding of the data so that we can accurately tell the story in the data. What we’ve seen in this particular data set tells a story of a subject growing in popularity, demonstrated by the increasing number of articles by a variety of authors. Let’s now prepare it for mass consumption. Note ■ ■ We are not fabricating or inventing this story. Like information archaeologists, we are sifting through the raw data to uncover the story. Visualize Data Once we’ve analyzed the data and understand it (and I mean really understand the data to the point where we are conversant in all the granular details around it), and once we’ve seen the story that the data has within, it is time to share that story. For the current example, we’ve already crafted a stem and leaf plot as well as a bar chart as part of our analysis. However, stem and leaf plots are great for analyzing data, but not so great for messaging out about the findings. It is not immediately obvious what the context of the numbers in a stem and leaf plot represents. And the bar chart we created supported the main thesis of the story instead of communicating that thesis. Since we want to demonstrate the distribution of articles by year, let’s instead use a histogram to tell the story: hist(yearlist) See Figure 1-18 for what this call to the hist() function generates.
  • 29.
    Chapter 1 ■Background 22 This is a good start, but let’s refine this further. Let’s color in the bars, give the chart a meaningful title, and strictly define the range of years. hist(yearlist, breaks=(1981:2012), freq=TRUE, col=#CCCCCC, main=Distribution of Articles about Data Visualizationnby the NY Times, xlab = Year) This produces the histogram that we see in Figure 1-5. Ethics of Data Visualization Remember Figure 1-3 from the beginning of this chapter where we looked at the weighted popularity of the search term “Data Visualization”? By constraining the data to 2006 to 2012, we told a story of a keyword growing in popularity, almost doubling in popularity over a six-year period. But what if we included more data points in our sample and extended our view to include 2004? See Figure 1-19 for this expanded time series chart. 1980 1985 1990 1995 2000 2005 2010 2015 yearlist Histogram of yearlist Frequency 30 25 20 15 10 5 0 Figure 1-18. Histogram of yearlist
  • 30.
    Random documents withunrelated content Scribd suggests to you:
  • 31.
    Ministry, authority in,184; ordination to, 187. Miracles, 222; an aid to spiritual growth, 238; testimony of, not infallible, 233; wrought by evil powers, 234. Missing Scripture, mentioned in Bible, 260. Mode of baptism, 139. Modern revelation, 320. Moloch, horrible worship of, 52. Mormon, Book of, see Book of Mormon. Moroni, the angel, visits Joseph Smith, 10-12, 261. Moses, conferred authority on Joseph Smith, 20, 351. Mutual Improvement Associations, 216. Nature, God in, 50. Nature, proofs from, regarding theism, 31. Natural indications of God, 50. Naturalness of belief in God, 48. Necessity of belief in God, 49.
  • 32.
    Nephites, 264; baptism among,143; sacrament instituted among, 176; visited by Christ, 143, 176. New Jerusalem (Zion), 360. New Testament, 249; authenticity and origin of, 249; classification of, 252; didactic books, 253; genuineness of, 258; historical books, 252; prophetical books, 253. Nicene Creed, 47. Obedience to law, 424-440. Offerings, fast, 446; free-will, 446; and tithes, 446-447. Ordination to the ministry, 187. Old Testament, 243; its origin and growth, 243; original language of, 246; Historical books, 248; Pentateuch, 247, 257; Poetical books, 248; Prophetical books, 248, 258; Septuagint version of, 246. Omniscience, omnipotence, and omnipresence of God, 42-43.
  • 33.
    Pagan ignorance ofresurrection, 403. Paradise, 405. Passover and sacrament, 182. Patriarchs, or evangelists, 211. Patriarchal office, succession in the, 211. Pentateuch, 247; Samaritan copy of the, 257. Perdition, Sons of, 62, 421. Persecution of Joseph Smith, 24. Personality of the Godhead, 41; of the Holy Ghost, 164. Peter, James, and John confer the Melchisedek priesthood, 194. Plates of Book of Mormon, 10, 269; of Nephi, 269; of Mormon, 269, 270. Plural marriages, discontinuance of, 435, 440. Poetical books of Old Testament, 248. Power, through faith, 106. Practical religion, 441.
  • 34.
    Pre-existence of spirits,197. Presidency in the priesthood, 212. Presidency, The First, 213. Presidency of Stakes, 215. President of the High Priesthood, 213. Presiding Bishopric, 214. Presiding quorum of Seventy, 214. Priesthood, Aaronic, 207; local organizations of, 215; Levitical, 208; Melchisedek, 208; quorum organizations of, 212; orders of, 207; restoration to earth, 206; specific duties in, 209. Priests, 210. Priests, High, 211. Primary Associations, 216. Primitive Church, 201; apostasy from, 203, 205. Prophecy, concerning Book of Mormon, 283; biblical, concerning Book of Mormon, 284; gift of, 231.
  • 35.
    Prophet, usage ofthe term, 237. Prophets, of old, organized, 237. Prophets, School of the, 237. Prophetical books, Old Testament, 248; New Testament, 253. Punishment for sin, 61; duration of, 63; endless and eternal, 63. Quorum organizations, 212; of deacons, 209; of elders, 210; of high priests, 211; of the First Presidency, 213; of the Twelve Apostles, 213; of teachers, 210; of seventies, 210; of seventies, the Presiding Quorum of, 214. Quorum, special usage of term, 209. Reason, supporting theism, 30. Re-baptism, 145; re-baptisms recorded in Scripture, 146. Redemption from the Fall, universal, 96; see Atonement. Regeneration of earth, 385.
  • 36.
    Reign of Christon earth, 367, 374. Relief Society, The, 216. Religion and Theology, 4. Religion classes, among the Latter day Saints, 216. Religion, practical, 441. Religious liberty and toleration, 406; intolerance, 409, 414, 422. Remission of sins, to obtain, 113 Renewal of the earth, 385. Repentance, essential to salvation, 117; a gift from God, 118; here and hereafter, 119; nature of, 113; not always possible, 118. Responsibility of man, 57. Restoration of the Church, 206. Restoration of the Ten Tribes, 353. Results of the Fall, 70. Resurrection of the body, 391; inaugurated, 396; the first, 396; heathen in the first, 404;
  • 37.
    the final, 401; ofChrist, 396; and the general resurrection immediately following, 396; predicted, 393; at second coming of Christ, 398; pagan ignorance concerning, 403. Resurrections, two general, of just and of unjust, 396. Revelation, 308; ancient, 311; continual, 314; alleged scriptural objections to continual revelation, 317; gift of, 232; future, expected, 323; God's means of communication, 310; revelation and inspiration, 308, 324; modern, 320; supporting theism, 35. Review exercises for class, 463. Sacrament of the Lord's Supper, 175; errors, concerning, 183; emblems used in, 179; fit partakers of, 177; institution of, among Jews, 175; among Nephites, 176; manner of administering, 180; purpose of, 179; sacrament and passover, 182; usage of term sacrament, 182. Sadducees, 404. Salvation, general, 90;
  • 38.
    individual, 90; and exaltation,94. Sanctity of the body, 459. Satan, 57, 64, 382. Schools, Church, 216; Sunday, 216. School of the Prophets, 237. Scripture missing, mentioned in Bible, 260. Seal of martyrdom, Joseph Smith, 25. Secular authority, submission to, 424-438. Septuagint, 246, 257. Serpent, curse on, 74. Seventies, office of, and quorum organization, 210. Sexes, unlawful association of, 459. Sin, 59; commission of, in ignorance, 60; forgiveness for, 113; punishment for, 61; unpardonable, 62. Smith, Joseph, see Joseph Smith. Society, the Relief, 216.
  • 39.
    Sons of Perdition,62, 421. Spaulding Story of the Book of Mormon, 278. Spirit, Holy, see Holy Ghost. Spiritual creations, 199. Spiritual gifts, 219; characteristic of the Church, 219; decline of, incident to the apostasy, 238; exist in Church today, 236; partial enumeration of, 225; imitations of, 235; modern manifestations, 239; nature of, 220. Stakes of Zion, 215. Stake Presidency, 215. Standard works of the Church, 5. Stewardship and consecration, 449, 450. Submission to laws of the land, 424-438. Succession in patriarchal office, 211. Sunday schools, 216. Teachers, false, 192. Teacher, grade of, in Aaronic priesthood, 209.
  • 40.
    Telestial glory, 95,419, 423. Temples, ancient and modern, 157. Temptation of Eve, 67. Ten Commandments, The, found among relics of ancient Americans, 303. Terrestrial glory, 95, 418. Testament, New, see New Testament. Testament, Old, see Old Testament. Testimony of miracles, not infallible, 233. Theism, modifications of, defined, 51. Theology, 2; extent of, 3; importance of study, 1; and religion, 4. Theories of Origin of Book of Mormon, 278. Thousand years of peace (Millennium), 379, 383. Time of Christ's coming, 373. Tithing, law of, 447, 449. Title page of Book of Mormon, 263, 278. Toleration, religious, 406; does not imply acceptance, 414.
  • 41.
    Tongues, gift of,226; interpretation of, 226. Tradition and history supporting theism, 28. Traditions among American aborigines, confirming Book of Mormon, 305. Tradition, Mexican, regarding the Savior, 307. Transgression, 54. Translation of the Book of Mormon, 273. Tree of Knowledge of Good and Evil, 68. Tree of Life, 68. Tribes, The Ten, or The Lost, 335, 338; journeyings of, 340; restoration of, 353. Trinity, The, 38. Unauthorized ministrations, 189. United Order, 451. Unity of the Godhead, 39. Universal and unconditional redemption from effects of the Fall, 96. Unlawful association of the sexes, 459.
  • 42.
    Unpardonable sin, 62. Versionsof Old Testament, 246. Versions of Bible, 246, 253, 257. Vicarious nature of the atonement, 79. Visions and dreams, 229. Ward, organization, and officers of, 215. Ward Bishopric, 215. Witnesses to Book of Mormon, Testimony of, the Three, 276; the Eight, 277; notes concerning, 279. Works of the Church, standard, 5. Written language of ancient Americans, 301. Zion, 356; the name, 357; founding of in Missouri, 366; Zion of Enoch, 358; the New Jerusalem, 360.
  • 43.
    FOOTNOTES: [1] See Doc. Cov. supplement to Lecture I on Faith; Buck's Theological Dictionary, p. 582. [2] See Key to Theology, by Parley P. Pratt, chap. i. [3] Gen. ii, 8; Pearl of Great Price: Moses iii, 15. [4] Gen. iii, 21; Pearl of Great Price: Moses iv, 27. [5] Gen. vi, 14: I Nephi xvii, 8; xviii, 1-4. [6] I Nephi xviii, 12, 21. [7] I Nephi xvi, 10, 16, 26-30; xviii, 12, 21; Alma xxxvii, 38. [8] Exo. xxv, xxvi, xxvii. [9] W. E. Gladstone. [10] See Note 1. [11] See Note 3. [12] James i, 5. [13] Pearl of Great Price: Extr. Hist. of Jos. Smith, 10-17. [14] See Note 2. [15] Compare Malachi iv, 1. [16] Compare Malachi iv, 5-6. [17] See Isaiah xi. [18] Compare Acts iii, 22-23. [19] See Note 5. [20] See Note 4. [21] Rev. xiv, 6. See Note 9. [22] Mal. iv, 5-6.
  • 44.
    [23] See page11. [24] Doc. Cov. cx, 13-16. [25] See Lectures on Article 10, pp. 326-366. [26] See pp. 326-383. [27] Doc. Cov. cx, 11. [28] Micah iv, 1-2. [29] See Lectures on Book of Mormon, Article 8, pp. 261-307. [30] Isa. xxix, 4; see also II Nephi iii, 19. [31] Ezek. xxxvii, 16-19. [32] Eph. i, 9-10. [33] II Nephi xxx, 18. [34] Acts iii, 19-21. [35] Doc. Cov. cxii, 30-32. [36] Doc. Cov. xiii. [37] Doc. Cov. xxvii, 12. [38] Doc. Cov. cx, 12. [39] Deut. xviii, 22. [40] Times and Seasons, Vol. II, No. 13. [41] Millennial Star, Vol. XIX, p. 630. Also Hist. of the Ch., Vol. V, p. 85. [42] Doc. and Cov. xlix, 24-25. [43] See Pearl of Great Price, British edition of 1851, and Millennial Star, Vol. XLIX, p. 396. The prophecy is now a part of the Doctrine and Covenants, see section lxxxvii. [44] See Doc. and Cov. lxxxvii, 5-7. [45] Mark xvi, 16-18; Luke x, 19, etc.; Doc. and Cov. lxxxiv, 65- 72. [46] Exo. vii, 11, 22: viii, 7, 18; Rev. xiii, 13-15: xvi, 13-14.
  • 45.
    [47] See Lectureon Article 7, pp. 219-239. [48] See Notes 1, 2, and 3. [49] Genesis i; see also Pearl of Great Price, Moses ii, 1. [50] Genesis iii, 8; and Pearl of Great Price, Moses iv, 14. [51] Pearl of Great Price, Moses v, 6-9. [52] Genesis iv, 9-16; Pearl of Great Price, Moses v, 22, 34-40. [53] Genesis iv, 16; Pearl of Great Price, Moses v, 41. [54] Genesis vi, 13, and succeeding chapter. [55] Genesis xii, and succeeding chapters. [56] Exo. iii, 4; xix, 18; Numb. xii, 5. [57] Numb. xii, 8; see also Pearl of Great Price, Moses i, 1-2. [58] Exo. xix, 9, 11, 17-20. [59] Cassell's Bible Dictionary, p. 481. [60] Paul in Heb. iii, 4 [61] See Note 4. [62] See Note 5. [63] Psalms xiv, 1. [64] Proverbs i, 7; x, 21; xiv, 9. [65] Gen. v, 18-24; see also Jude 14. [66] Pearl of Great Price, Moses vi, vii. [67] Exodus iii, 6. [68] Ex. xx, 18-22. [69] Ex. xxiv, 9-10. [70] Isa. vi, 1-5. [71] Matt. iii, 16-17; Mark i, 11. [72] Matt. xvii, 1-5; Luke ix, 35.
  • 46.
    [73] Acts vii,54-60. [74] Book of Mormon, Ether iii. [75] Book of Mormon, III Nephi xi-xxviii. [76] See page 9. [77] Doc. and Cov. lxxvi, 11-24. [78] Doc. and Cov. cx, 1-4. [79] Matt. iii, 16-17; Mark i, 9-11; Luke iii, 21-22. [80] John xiv, 26; xv, 26. [81] Acts vii, 55-56. [82] See page 9. [83] I Cor. viii, 6; John i, 1-14; Matthew iv, 10; I Tim. iii, 16; I John v, 7; Mosiah xv, 1, 2. [84] See Note 11. [85] John x, 30, 38; xvii, 11, 22. [86] III Nephi xi, 27, 36; xxviii, 10; see also Alma xi, 44. [87] John xvii, 11-21. [88] John xiv, 9-11. [89] John xvii, 5. [90] John i, 3; Heb. i, 2; Eph. iii, 9; Col. i, 16. [91] John xx, 14-15, 19-20, 26-27; xxi, 1-14; Matt, xxviii, 9; Luke xxiv, 15-31, 36-44. [92] Acts i, 9-11. [93] Heb. i, 3; Col. i, 15; II Cor. iv, 4. [94] Genesis i, 26-27; James iii, 8-9. [95] Doc. and Cov. cxxx, 22. [96] I Nephi iv, 6; xi, 8; Mos. xiii, 5. Acts ii, 4; viii, 29; x, 19; Rom. viii, 10, 26; I Thess. v, 19. [97] Matt, iii, 16; xii, 28; I Nephi xiii, 12.
  • 47.
    [98] John xiv,16. [99] John xv, 26; xvi, 13. [100] Doc. and Cov. cxxx, 22. [101] I Nephi xi, 11. [102] Neh. ix, 30; Isa. xlii, 1; Acts x, 19; Alma xii, 3; Doc. and Cov. cv, 36; xcvii, 1. [103] John xvi, 13; I Nephi x, 19; Doc. and Cov. xxxv, 13; 1, 10. [104] Gen. i, 2; Job xxvi, 13; Psalms civ, 30; Doc. and Cov. xxix, 31. [105] John xv, 26; Acts v, 32; xx, 23; I Cor. ii, 11; xii, 3; III Nephi xi, 32. [106] For a fuller treatment of the Holy Ghost, His personality and attributes, see Lecture viii, p. 162. [107] Gen. xi, 5. [108] Gen. xvii, 1, 22. [109] Acts xv, 18; see also Pearl of Great Price: Moses i, 6, 35; I Nephi ix, 6. [110] Deut. iv, 31; II Chron. xxx, 9; Exo. xxxiv, 6; Neh. ix, 17, 31; Psalms cxvi, 5; ciii, 8; lxxxvi, 15; Jer. xxxii, 18; Exo. xx, 6. [111] Exo. xx, 5; Deut. vii, 21; x, 17; Psa. vii, 11. [112] Exo. xx, 5; xxxiv, 14; Deut. iv, 24; vi, 14, 15; Josh. xxiv, 19, 20. [113] See Note 12. [114] See Note 6. [115] Exo. xx, 3. [116] See Note 7. [117] See Note 8. [118] See Note 9. [119] See Note 1.
  • 48.
    [120] Genesis ii,17; Pearl of Great Price, Moses ii, 27-29; iii, 15- 17. [121] Pearl of Great Price, Moses iii, 17. [122] Doctrine and Covenants, xxix, 35. [123] Genesis iv, 7. [124] II Nephi ii, 16 and 27; x, 23. See also Alma iii, 26; xii, 31; xxix, 4, 5; xxx, 9; Hel. xiv, 30. [125] Alma iii, 26-27. [126] Helaman xiv, 30-31. [127] Moses iv. 1; see also Abraham iii, 27-28; and Jesus the Christ, ch. ii. [128] Matt. x, 15; xi, 22; II Peter ii, 9; iii, 7; I John iv, 17. [129] Matt. xii, 36. [130] Zech. viii, 17. [131] Rev. xx, 12, 13. [132] Job xlii, 10-17. [133a] Numbers xii, 1-2; 10-15; xv, 32-36; xvi; xxi, 4-6; I Sam. vi, 19; II Sam. vi, 6-7; Acts v, 1-11. [133b] John v, 22-27; Acts x, 42; xvii, 31; Rom. ii, 16; II Cor. v, 10; II Tim. iv, 1, 8; Doc. and Cov. cxxxiii, 2. [134] John v, 22. [135] Acts x, 42. [136] Dan. vii, 9; II Thess. i, 7, 8; III Nephi xxvi, 3-5; Doc. and Cov. lxxvi, 31-49; 103-106. [137] Matt. xxv, 31-46; Doc. and Cov. i, 9-12. [138] Acts x, 34, 35; Rom. ii, 11; Eph. vi, 9; Colos. iii, 25. [139] II Tim. iv, 8. [140] I John iii, 4. [141] See Note 2.
  • 49.
    [142] Pearl ofGreat Price: Moses iv, 4; Genesis iii. [143] II Nephi ix, 25-26. [144] The same, paragraph 27. [145] Rom. ii, 12. [146] Doc. and Cov. lxxvi, 72. [147] Doc. and Cov. xiv, 54. See p. 404, Note 4. [148] Doc. and Cov. lxxvi, 82-85; lxxxii, 21; civ, 9; lxiii, 17; II Nephi i, 13; ix, 27; xxviii, 23. [149] Doc. and Cov. lxxvi, 36, 44; Jacob vi, 10; Alma xii, 16-17; III Nephi xxvii, 11-12. [150] See Doc. and Cov. lxxvi, 26, 32, 43. [151] Doc. and Cov. cxxxii, 27. [152] John xvii, 12; II Thess. ii, 3; Doc. and Cov. lxxvi, 32. [153] Doc. and Cov. lxxvi, 45-48.
  • 50.
    [154] Doc. andCov. lxxvi, 38-39. [155] Doc. and Cov. xix, 6-12; lxxvi, 36, 44. [156] Doc. and Cov. xix, 10-12. [157] I Peter iii, 18-20; iv, 6; Doc. and Cov. lxxvi, 73. See p. 119. [158] Doc. and Cov. lxxvi, 44. [159] Matt. xviii, 8; xxv, 41, 46; II Thess. i, 9; Mark iii, 29; Jude 7. [160] Revelation given March, 1830; Doc. and Cov. xix, 4-12. [161] Job i, 6-22; ii, 1-7; Zech. iii, 1-2. [162] Matt. iv, 5, 8, 11; I Peter v, 8. [163] Matt. xii, 24. [164] Doc. and Cov. lxxvi, 26. [165] II Cor. vi, 15. [166] Rev. xii, 9; xx, 2. [167] Doc. and Cov. lxxvi, 25-27. [168] Doc. and Cov. xxix, 36-37; see also Pearl of Great Price: Moses iv, 3-7; Abraham iii, 27-28; Jesus the Christ, pp. 8, 9. [169] Genesis iii, 4-5, and Pearl of Great Price: Moses iv, 6-11. [170] Pearl of Great Price: Moses v, 29-33. [171] Luke xiii, 16; Job i. [172] John xii, 31; xvi, 11. [173] Rev. xx, 1-10. [174] Read Genesis, chapters ii and iii; Pearl of Great Price: Moses iii, iv: Abraham v, 7-21. [175] Genesis i, 26; Pearl of Great Price: Moses ii, 27. [176] See Note 3. [177] Genesis ii, 8-9. [178] Genesis ii, 18; Pearl of Great Price: Moses iii, 18, 21-24.
  • 51.
    [179] Genesis i,28; Pearl of Great Price: Moses ii, 28; Abraham iv, 28. [180] Pearl of Great Price: Moses iii, 16-17; see also Genesis ii, 16-17. [181] I Timothy ii, 14. See Note 8. [182] II Nephi ii, 25. [183] Gen. iii, 22-24; Pearl of Great Price: Moses iv, 31. [184] Alma xlii, 3-5. [185] See Note 4. [186] Pearl of Great Price: Moses v 10-11; see Note 6. [187] Pearl of Great Price: Moses i 39; see Note 7. [188] Pearl of Great Price: Moses iv, 6. [189] See Lecture iv, p. 76. [190] See Note 5. [191] Romans v, 11. [192] Romans v, 10-11. [193] Standard Dictionary, under propitiation. [194] See Note 1. [195] Pres. John Taylor, Mediation and Atonement, pp. 148-149. [196] Lev. xvi, 20-22. [197] Lev. iv. [198] See page 70. [199] Matt. xxvi, 53-54; John x, 17-18. [200] Doc. and Cov. xix, 16-19. See Jesus the Christ, pp. 610- 614. [201] I Cor. xv, 29. See Lectures vi and vii. [202] Doc. and Cov. cxxvii, 4-9; cxxviii. [203] John x, 17-18. See Jesus the Christ, pp. 22, 23, 81, 418.
  • 52.
    [204] John v,26-27. [205] Matt. xxvi, 53-54. [206] Luke xxiii, 34. [207] John iii, 16-17. [208] I John iv, 9. See Jesus the Christ, chs. ii and iii. [209] Pres. John Taylor, in Mediation and Atonement, p. 97. [210] See page 71. Moses v, 9-11.—For general treatment see Jesus the Christ, ch. v. See also Note 6. [211] Pearl of Great Price: Moses vi, 51-68. [212] Deut. xviii, 15, 17-19. [213] Job xix, 25-27. [214] Psalms ii, 1-12. [215] Zech. ix, 9; xii, 10; xiii, 6. [216] Isaiah vii, 14; ix, 6-7. [217] Micah v, 2. [218] Matt. iii, 11. [219] Luke xxiv, 27. [220] Luke xxiv, 45-46. See Jesus the Christ, pp. 685-690. [221] I Peter i, 19-20. [222] Romans iii, 25. [223] See Rom. xvi, 25-26; Eph. iii, 9-11; Col. i, 24-26; II Tim. i, 8-10; Titus i, 2-3; Rev. xiii, 8. [224] Ether iii, 13-14; see also xiii, 10-11. [225] Ether iii, 14; read also 8-16. See Note 12, p. 53. [226] I Nephi x, 3-11. [227] I Nephi xi, 14-35; see also II Nephi ii, 3-21; xxv, 20-27; xxvi, 24. [228] II Nephi vi, 8-10; ix, 5-6.
  • 53.
    [229] Mosiah iii,5-27; iv, 1-8. [230] Mosiah xv, 6-9; xvi. [231] Alma vii, 9-14. [232] Alma xi, 35-44. [233] Hela. xiv, 2-8. [234] Hela. xiv, 2-5; 21-27. [235] III Nephi i, 5-21; viii, 3-25. [236] III Nephi xi, 1-17. See Jesus the Christ, ch. xxxix. [237] See Doc. and Cov. vi, 21; xiv, 9; xviii, 10-12; xix, 1-2, 24; xxi, 9; xxix, 1; xxxiii; xxxiv, 1-3; xxxv, 1-2; xxxviii, 1-5; xxxix, 1-3; xlv, 3-5; xlvi, 13-14; lxxvi, 1-4, 12-14, 19-24, 68; xciii, 1-6, 12-17, 38. [238] Doc. and Cov. xxxv, 1-2. [239] See Note 2. [240] John xi, 25. [241] I Cor. xv, 20; see Acts xxvi, 23. [242] John v, 28-29. [243] Doc. and Cov. lxxvi, 17. [244] Acts xxiv, 15. [245] I Cor. xv, 22. [246] Rev. xx, 12-13. [247] Rom. v, 18. [248] I Tim. ii, 5-6. [249] I John ii, 2. [250] Mos. iv, 7. [251] Doc. and Cov. lxxvi, 42. [252] Moroni viii, 19-22. [253] Moroni viii, 8-12.
  • 54.
    [254] Doc. andCov. xxix, 46-47. [255] Mediation and Atonement, page 148. See Note 3. [256] Rom. iii, 23. [257] I John i, 8. [258] Heb. v, 9. [259] Rom. ii, 6-11. [260] Mark xvi, 16. [261] Mosiah iii, 11-12. [262] Doc. and Cov. lxxvi, 50-70. [263] Doc. and Cov. lxxvi, 71-80. [264] Doc. and Cov. lxxvi, 81-86. [265] The same, paragraphs 89-90. [266] See page 62; also pages 416-422. [267] Heb. xi, 1. [268] See James ii, 19. [269] See Mark v, 1-18; also Matt. viii, 28-34. [270] See Mark i, 24. [271] Mark iii, 8-11. See Jesus the Christ, pp. 181, 310-312. [272] Doc. and Cov. lxxvi, 25-27. [273] Matt. xvi, 15-16; see also Mark viii, 29; Luke ix, 20. [274] Lecture II, page 28. [275] Doc. and Cov., Lectures on Faith, iii, 13-18. [276] Longfellow. [277] See Note 1. [278] See Acts ii. [279] Exo. xiv, 22-29; Heb. xi, 29.
  • 55.
    [280] Josh. vi,20; Heb. xi, 30. [281] Josh. x, 12. [282] Heb. xi, 32-34; Doc. and Cov., Lecture i, 20. [283] Judges vi, 11. [284] Judges iv, 6. [285] Judges xiii, 24. [286] Judges xi, 1; xii, 7. [287] I Sam. xvi, 1, 13; xvii, 45. [288] I Sam. i, 20; xii, 20. [289] Alma xiv, 26-29; Doc. and Cov., Lecture on Faith, i, 19. [290] Helaman v, 20-52; Doc. and Cov., Lecture on Faith, i, 19. [291] Matt. viii, 23-27; Mark iv, 36-41; Luke viii, 22-25; Matt. xiv, 24-32; Mark vi, 47-51, John vi, 17-21. [292] Matt. xxi, 17-21; Mark xi, 12-13, 20-24; Book of Jacob iv, 6. [293] Matt. xvii, 20; Mark xi, 23-24; Ether xii, 30; Jacob iv, 6; Doc. and Cov., Lecture on Faith, i, 19. [294] Luke xiii, 11; xiv, 2; xvii, 11; xxii, 50; Matt. viii, 2, 5, 14, 16, etc. [295] Matt. viii, 28; xvii, 18; Mark i, 23. [296] Luke vii, 11-16; John xi, 43-45; I Kings xvii, 17-24. [297] Matt. xvii, 20; Mark ix, 23; Eph. vi, 16; I John v, 4. [298] Joshua vii-viii. [299] Matt. xiii, 58; Mark vi, 5 6. [300] Heb. xi, 35-38; see also Doc. and Cov., Lectures on Faith, vi. [301] Heb. xi, 6. [302] Mark xvi, 16.
  • 56.
    [303] John iii,36. See also John iii, 15; iv, 42; v, 24; xi, 25; Gal. ii, 20; I Nephi x, 6, 17; II Nephi xxv, 25; xxvi, 8; Enos i, 8; Mos. iii, 17; III Nephi xxvii, 19; Hel. v, 9; Doc. and Cov. xiv, 8. [304] Acts ii, 38; x, 42; xvi, 31; Rom. x, 9; Heb. iii, 19; xi, 6; I Pet. i, 9; I John iii, 23; v, 14. [305] Matt. xvi, 17; John vi, 44, 65; Eph. ii, 8; I Cor. xii, 9; Rom. xii, 3; Moroni x, 11. [306] See Rom. x, 17. [307] Matt. vii, 21. [308] John xiv, 21. [309] James ii, 14-18. [310] I John ii, 3-5. [311] See I Nephi xv, 33; II Nephi xxix, 11; Mosiah v, 15; Alma vii, 27; ix, 28; xxxvii, 32-34; xli, 3-5. [312] Doc. and Cov. throughout. [313] See Note 2. [314] See Note 3. [315] I John i, 8-9; see also Psalms xxxii, 5; xxxviii, 18; Mosiah xxvi, 29-30. [316] Prov. xxviii, 13. [317] Doc. and Cov. lxiv, 7. [318] Doc. and Cov. lviii, 43. [319] Matt. vi, 12; see also Luke xi, 4. [320] Matt. vi, 14-15; III Nephi xiii, 14-15. [321] Luke xvii, 3-4. [322] Matt. vii, 2; Mark iv, 24; Luke vi, 38. [323] Matt. xviii, 23-35. See Jesus the Christ, pp. 392-395. [324] Matt. v, 23-24: III Nephi xii, 23-24. [325] Doc. and Cov. lxiv, 9-10.
  • 57.
    [326] Pearl ofGreat Price: Moses vi, 52. [327] Pearl of Great Price: Moses v, 6-8. [328] III Nephi xxvii, 5-7. [329] II Cor. vii. 10. [330] Eccl. vii, 20; see also Rom. iii, 10; I John i, 8. [331] Isa. iv, 6-7; see also II Nephi ix, 24; Alma v, 31-36, 49-56; ix, 12; Doc. and Cov. i, 32-33; xix, 4; xx, 29; xxix, 44; cxxxiii, 16. [332] Matt. iii, 2. [333] Mark i, 15. [334] Luke xiii, 3. [335] Acts xvii, 30. [336] Doc. and Cov. xx, 29. [337] Matt. iii, 7-8; Acts xxvi, 20. [338] Acts xi, 18. [339] Rom. ii, 4; see also II Tim. ii, 25. [340] Gen. vi, 3; Doc. and Cov. i, 33. [341] Doc. and Cov. i, 31-33. [342] Alma xii, 24; xxxiv, 32; xiii, 4. [343] I Peter iii, 19-20. [344] Doc. and Cov. lxxvi, 73-74. See Jesus the Christ, ch. xxxvi. [345] Alma xxxiv, 33. [346] Alma xxxiv, 32-35. [347] Alma vii, 15. [348] Acts ii, 37-38. [349] Moroni viii, 25. [350] Pearl of Great Price: Moses vi, 52-65. [351] Mark i, 4; Luke iii, 3.
  • 58.
    Welcome to ourwebsite – the ideal destination for book lovers and knowledge seekers. With a mission to inspire endlessly, we offer a vast collection of books, ranging from classic literary works to specialized publications, self-development books, and children's literature. Each book is a new journey of discovery, expanding knowledge and enriching the soul of the reade Our website is not just a platform for buying books, but a bridge connecting readers to the timeless values of culture and wisdom. With an elegant, user-friendly interface and an intelligent search system, we are committed to providing a quick and convenient shopping experience. Additionally, our special promotions and home delivery services ensure that you save time and fully enjoy the joy of reading. Let us accompany you on the journey of exploring knowledge and personal growth! ebookname.com