@@ -67,34 +67,6 @@ source('load_data.R')
67
67
\titlepage
68
68
\end {frame }
69
69
70
- \begin {frame }[plain]
71
- \frametitle {Average account longevity}
72
- \begin {block }{Question}
73
- How does (date.last.saved - date.authorized) vary as a function of date.authorized?
74
- \end {block }
75
- Some notes about the dataset:
76
- \begin {itemize }
77
- \item Many authorized dates are NA:
78
- <<<echo =T , eval =T >>=
79
- xtable(is.na(wdf $ authorized_date ))
80
- @
81
- \item Some last saved at dates are before the authorized dates:
82
- \item $ \Sexpr{ round(3 / 2 ) } $
83
- \end {itemize }
84
- \end {frame }
85
-
86
- <<<<<<< HEAD
87
- =======
88
- \begin {frame }
89
- \frametitle {Global Martus Use }
90
- <<echo =false , include =false >>=
91
- source(' 11_map_report.R' )
92
- @
93
- \includegraphics [width=11cm]{benetech_report-map_plot.pdf} \\
94
- As of \today
95
- \end {frame}
96
-
97
- >>>>>>> 9d4412c0ae24a168e106f195a1ab47127b8ffb94
98
70
\begin {frame }{Database Usage Statistics}
99
71
100
72
\begin {table }[ht]
@@ -123,7 +95,7 @@ source( "Q1_server_usage.R" )
123
95
\begin {figure }
124
96
\begin {center }
125
97
126
- <<TotalUsagePlot , fig =TRUE , echo =FALSE , width =2.5 , height =2.5 >>=
98
+ <<TotalUsagePlot , fig =TRUE , echo =FALSE , width =4 , height =3 >>=
127
99
source( " Q1b_server_growth.R" )
128
100
plot.tot(bfs.big )
129
101
@
@@ -139,7 +111,7 @@ plot.tot(bfs.big)
139
111
\begin {figure }
140
112
\begin {center }
141
113
142
- <<AverageDailyUsagePlot , fig =TRUE , echo =FALSE , width =4 , height =2.5 >>=
114
+ <<AverageDailyUsagePlot , fig =TRUE , echo =FALSE , width =4 , height =3 >>=
143
115
plot.deriv(bfs.little )
144
116
@
145
117
\caption {Daily usage over time}
@@ -154,7 +126,7 @@ plot.deriv(bfs.little)
154
126
\begin {figure }
155
127
\begin {center }
156
128
157
- <<AverageDailyUsagePlotTruncated , fig =TRUE , echo =FALSE , width =2.5 , height =2.5 >>=
129
+ <<AverageDailyUsagePlotTruncated , fig =TRUE , echo =FALSE , width =4 , height =3 >>=
158
130
plot.deriv.trunc(bfs.little )
159
131
@
160
132
\caption {Average Daily Usage (Truncated)}
@@ -170,7 +142,44 @@ Note: as previous slide, but truncated to 95\% of values to see typical behavior
170
142
<<CustomFieldStats , results =tex , echo =FALSE >>=
171
143
source( " Q4_custom_field_code.R" )
172
144
@
145
+ \end {frame }
173
146
147
+ <<echo =false >>=
148
+ source(' q5.R' )
149
+ @
150
+
151
+ \begin {frame }[plain]
152
+ \frametitle {Average account longevity}
153
+ \begin {block }{Question}
154
+ How does (date.last.saved - date.authorized) vary as a function of date.authorized?
155
+ \end {block }
156
+ Some notes about the dataset:
157
+ \begin {itemize }
158
+ \item Many authorized dates are NA:
159
+ <<TimeBoxPlots , fig =TRUE , echo =FALSE , width =4 , height =3 >>=
160
+ print(ggplot(data = working_set , aes(x = time_group_halves , y = time_diff_int / 60 / 60 / 24 )) +
161
+ geom_point() + geom_boxplot() + opts(axis.text.x = theme_text(angle = - 90 )))
162
+ @
163
+ \item Some last saved at dates are before the authorized dates:
164
+ \item $ \Sexpr{ round(3 / 2 ) } $
165
+ \end {itemize }
166
+ \end {frame }
167
+
168
+ \begin {frame }
169
+ \frametitle {By Account Quarter, Scatter}
170
+ <<ActivityByAccountScatter , fig =TRUE , echo =FALSE , width =4 , height =3 >>=
171
+ print(ggplot(data = by_account_quarter , aes(x = count , y = time_diff_median_seconds / 60 / 60 )) +
172
+ geom_point() + coord_trans(x = " log10" ) + opts(axis.text.x = theme_text(angle = - 90 )))
173
+ @
174
+ \end {frame }
175
+
176
+ \begin {frame }
177
+ \frametitle {By Account Quarter, Box}
178
+ <<ActivityByAccountBox , fig =TRUE , echo =FALSE , width =4 , height =3 >>=
179
+ print(ggplot(data = by_account_quarter , aes(x = count , y = time_diff_mean_seconds / 60 / 60 )) +
180
+ geom_point() + geom_boxplot(aes(group = round_any(log10(count ), 1 ))) +
181
+ opts(axis.text.x = theme_text(angle = - 90 )))
182
+ @
174
183
\end {frame }
175
184
176
185
\begin {frame }
0 commit comments