|
@@ -27,9 +27,13 @@ html, body {
|
27
|
27
|
padding: 6px 8px;
|
28
|
28
|
font: 14px/16px Arial, Helvetica, sans-serif;
|
29
|
29
|
}
|
|
30
|
+#mapcontrol, #control2 {
|
|
31
|
+ z-index: 1000;
|
|
32
|
+}
|
30
|
33
|
#infopanel {
|
31
|
34
|
display: none;
|
32
|
|
- padding: 30px;
|
|
35
|
+ background-color: rgba(255, 255, 255, 0.9);
|
|
36
|
+ padding: 10px;
|
33
|
37
|
z-index: 1001;
|
34
|
38
|
}
|
35
|
39
|
#lochtml ul {
|
|
@@ -51,6 +55,39 @@ html, body {
|
51
|
55
|
margin-right: 0px !important;
|
52
|
56
|
margin-bottom: 0px !important;
|
53
|
57
|
}
|
|
58
|
+h3 {
|
|
59
|
+ margin-top: 5px;
|
|
60
|
+ margin-bottom: 5px;
|
|
61
|
+}
|
|
62
|
+.overflowable {
|
|
63
|
+ max-height: 100%;
|
|
64
|
+ overflow: auto;
|
|
65
|
+ -ms-overflow-style: none; /* IE and Edge */
|
|
66
|
+ scrollbar-width: none; /* Firefox */
|
|
67
|
+}
|
|
68
|
+.overflowable::-webkit-scrollbar {
|
|
69
|
+ display: none;
|
|
70
|
+}
|
|
71
|
+blockquote {
|
|
72
|
+ font-size: 1em;
|
|
73
|
+ font-style: italic;
|
|
74
|
+ border: none;
|
|
75
|
+ margin: 0;
|
|
76
|
+}
|
|
77
|
+.scrollbuffer {
|
|
78
|
+ height: 20px;
|
|
79
|
+}
|
|
80
|
+.overflowable:before {
|
|
81
|
+ content:'';
|
|
82
|
+ width:100%;
|
|
83
|
+ height:20px;
|
|
84
|
+ position:absolute;
|
|
85
|
+ left:0;
|
|
86
|
+ bottom:0;
|
|
87
|
+ right:0;
|
|
88
|
+ background:linear-gradient(transparent 0px,
|
|
89
|
+ rgba(255, 255, 255, 0.9));
|
|
90
|
+}
|
54
|
91
|
"
|
55
|
92
|
|
56
|
93
|
attribhtml <- '
|
|
@@ -65,3 +102,57 @@ confidentiality-of-info-supplied-to-snz/safeguarding-confidentiality.aspx"
|
65
|
102
|
title="A method of preserving confidentiality and anonymity">
|
66
|
103
|
random rounding</a>
|
67
|
104
|
'
|
|
105
|
+
|
|
106
|
+infotext <- div(class="overflowable",
|
|
107
|
+ h3("How did Kiwis commute in 2018?"),
|
|
108
|
+ p("This tool maps the 2018 census",
|
|
109
|
+ a(href=
|
|
110
|
+ "https://datafinder.stats.govt.nz/data/category/census/2018/commuter-view/",
|
|
111
|
+ "commuter data"),
|
|
112
|
+ "to help visualise transport ",
|
|
113
|
+ "connections. It is ", a(href="http://petras.space", "Petra Lamborn's"),
|
|
114
|
+ " entry for the ", em("There and Back Again"),
|
|
115
|
+ a(href=
|
|
116
|
+"https://www.stats.govt.nz/2018-census/there-and-back-
|
|
117
|
+again-data-visualisation-competition", "data visualisation competition",
|
|
118
|
+ .noWS = "after"), ". The source data counts employed persons 15 years or ",
|
|
119
|
+ "older who gave an employment location in the 2018 census."),
|
|
120
|
+ h4("Options"),
|
|
121
|
+ p("The top right panel (toggleable via the blue switch) allows ",
|
|
122
|
+ "you to choose between visualising the people who commute from ",
|
|
123
|
+ "and to each area, and between showing numbers of people or ",
|
|
124
|
+ "their primary mode of transportation."),
|
|
125
|
+ p("Select an area by clicking on it; deselect by clicking it again ",
|
|
126
|
+ "or clicking in the water. When an area is selected the map is ",
|
|
127
|
+ "coloured according to the people who commute to or from that area ",
|
|
128
|
+ "(including the people who commute within the area). When no area is ",
|
|
129
|
+ "selected, colouring is according to commutes to or from all ",
|
|
130
|
+ "localities."),
|
|
131
|
+ h4("FAQ"),
|
|
132
|
+ shiny::tags$blockquote("Why are so many areas purple (for 'works at ",
|
|
133
|
+ "home')?"),
|
|
134
|
+ p("Working from home includes working from your kitchen table, ",
|
|
135
|
+ "but also farming. Anyone who is employed but does not commute ",
|
|
136
|
+ "is included in this category."),
|
|
137
|
+ shiny::tags$blockquote("Why is every number divisible by three?"),
|
|
138
|
+ p("To ensure anonymity and the confidentiality of your census data, ",
|
|
139
|
+ "Statistics New Zealand employs a technique called ",
|
|
140
|
+ em(a(href=paste0(
|
|
141
|
+ "http://archive.stats.govt.nz/about_us/legisln-policies-protocols/",
|
|
142
|
+ "confidentiality-of-info-supplied-to-snz/safeguarding-confidentiality.aspx"),
|
|
143
|
+ "random rounding", .noWS = "after"), .noWS = "after"), ". ",
|
|
144
|
+ "This method rounds all values to a multiple of three, but one-third of ",
|
|
145
|
+ "the time rounds to the second nearest multiple, rather than the closest. ",
|
|
146
|
+ "Additionally, rounded values less than six are censored."),
|
|
147
|
+ p("Note that this also means totals do not always add up."),
|
|
148
|
+ shiny::tags$blockquote("In some views there are areas that are greyed ",
|
|
149
|
+ "out when looking at transport type, but not ",
|
|
150
|
+ "when looking at numbers of people. How does ",
|
|
151
|
+ "that work?"),
|
|
152
|
+ p("As mentioned above some low values are censored to avoid providing ",
|
|
153
|
+ "potentially identifyable information. However it is possible for the ",
|
|
154
|
+ "total number of people to be large enough to escape censoring while ",
|
|
155
|
+ "all transport", em("type"), "numbers are too small and so no most ",
|
|
156
|
+ "common type can be determined."),
|
|
157
|
+ div(class="scrollbuffer")
|
|
158
|
+)
|