In his iconic flow map of Napoleon’s catastrophic 1812 invasion of Russia, Charles Joseph Minard blends and bends temporal and spatial representations. The path and number of outward-bound soldiers is represented by an initially thick tan ribbon while the dwindling numbers of retreating survivors are represented by a narrowing black band. In this visualization, the time it took to march into Russia is not clear. The only time stamps shown are for the return trip and progressing from right to left. In a sense, time is “bent” to advance the impact of the visual narrative.
What do we like? dislike?
We live in a world with a surfeit of information at our service. It is our choice whether we seek out data that reinforce our biases or choose to look at the world in a critical, rational manner, and allow reality to bend our preconceptions. In the long run, the truth will work better for us than our cherished fictions. -Razib Khan, “The Abortion Stereotype,”
For the time will come when people will not put up with sound doctrine. Instead, to suit their own desires, they will gather around them a great number of teachers to say what their itching ears want to hear. They will turn their ears away from the truth and turn aside to myths. - Paul (2 Timothy 4:3-4 NIV)
Intelligent people cannot long endure … doubts. It must be resolved … We set about to remove doubt by gathering information and making tests concerning the subject in question… - Evidences and Reconciliations, pg. 31
These steps may open researchers’ eyes to new paths to explore, so they don’t constitute a process with a beginning and an end point but a loop. …
Data always vary randomly because the object of our inquiries, nature itself, is also random. We can analyze and predict events in nature with an increasing amount of precision and accuracy, thanks to improvements in our techniques and instruments, but a certain amount of random variation, which gives rise to uncertainty, is inevitable.
Note that when you use date-times in a numeric context (like in a histogram), 1 means 1 second, so a binwidth of 86400 means one day. For dates, 1 means 1 day.
Hawaii does not observe Daylight Saving Time and neither does Arizona (although the Navajo Nation, in northeastern Arizona, does). For many years, most of Indiana did not observe Daylight Saving Time with the exception of 10 counties. Beginning in 2006, all of Indiana now observes Daylight Saving Time.
In 2005, we want to know how much electricity is being consumed at 4:00 pm on Monday April 4th in commercial buildings. We are looking at suburbs of Louisville, Kentucky. What concerns do you have?
Open R-Studio and Convert the following strings to date objects.
Try ymd()
, mdy()
, dmy()
, ydm()
Try make_date()
and make_datetime()
.
You can pull out individual parts of the date with the accessor functions; year(), month(), mday() (day of the month), yday() (day of the year), wday() (day of the week), hour(), minute(), and second().
Challenge
Tackle the Following
Sys.timezone(location = TRUE)
or OlsonNames()
to see a list of timezonesSys.timezone(location = TRUE)
or OlsonNames()
to see a list of timezonesUse round_date()
, ceiling_date()
, floor_date()
, force_tz()
, and with_tz()
to answer the following questions.