Skip to content

Commit 18709da

Browse files
committed
Include new image files related to datetime binning
1 parent b290026 commit 18709da

9 files changed

+329
-3
lines changed
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
"2014-12-24 00:00:00",
6+
"2014-12-23 00:00:00",
7+
"2014-12-22 00:00:00",
8+
"2014-12-22 00:00:00",
9+
"2014-12-22 00:00:00",
10+
"2014-12-18 00:00:00",
11+
"2014-12-22 00:00:00",
12+
"2014-12-21 00:00:00",
13+
"2014-12-21 00:00:00",
14+
"2014-12-21 00:00:00",
15+
"2014-12-20 00:00:00",
16+
"2014-12-19 00:00:00",
17+
"2014-12-18 00:00:00",
18+
"2014-12-18 00:00:00",
19+
"2014-12-17 00:00:00",
20+
"2014-12-17 00:00:00",
21+
"2013-12-20 00:00:00",
22+
"2014-04-25 00:00:00",
23+
"2014-12-01 00:00:00",
24+
"2014-12-17 00:00:00",
25+
"2014-12-17 00:00:00",
26+
"2014-12-17 00:00:00",
27+
"2014-12-17 00:00:00",
28+
"2014-12-17 00:00:00",
29+
"2014-12-17 00:00:00",
30+
"2014-12-15 00:00:00",
31+
"2014-12-15 00:00:00",
32+
"2014-12-15 00:00:00",
33+
"2014-12-14 00:00:00",
34+
"2014-12-14 00:00:00",
35+
"2014-12-14 00:00:00",
36+
"2014-12-13 00:00:00",
37+
"2014-12-13 00:00:00",
38+
"2013-05-18 00:00:00",
39+
"2014-12-13 00:00:00",
40+
"2014-12-12 00:00:00",
41+
"2014-12-12 00:00:00",
42+
"2014-12-11 00:00:00",
43+
"2014-12-10 00:00:00",
44+
"2014-12-10 00:00:00",
45+
"2014-12-10 00:00:00",
46+
"2014-12-10 00:00:00",
47+
"2014-12-09 00:00:00",
48+
"2014-12-09 00:00:00",
49+
"2014-12-09 00:00:00",
50+
"2014-12-09 00:00:00",
51+
"2014-12-08 00:00:00",
52+
"2014-12-08 00:00:00",
53+
"2014-12-08 00:00:00",
54+
"2014-12-07 00:00:00",
55+
"2014-12-08 00:00:00",
56+
"2014-12-07 00:00:00",
57+
"2014-05-01 00:00:00",
58+
"2014-12-05 00:00:00",
59+
"2014-12-05 00:00:00",
60+
"2014-12-05 00:00:00",
61+
"2014-12-04 00:00:00",
62+
"2014-12-04 00:00:00",
63+
"2014-12-04 00:00:00",
64+
"2014-07-13 00:00:00",
65+
"2014-12-02 00:00:00",
66+
"2014-12-03 00:00:00",
67+
"2014-12-03 00:00:00",
68+
"2014-12-02 00:00:00",
69+
"2014-12-02 00:00:00",
70+
"2014-12-01 00:00:00",
71+
"2014-12-01 00:00:00",
72+
"2014-12-01 00:00:00",
73+
"2014-04-02 00:00:00",
74+
"2014-11-30 00:00:00",
75+
"2014-11-30 00:00:00",
76+
"2014-11-29 00:00:00",
77+
"2014-11-28 00:00:00",
78+
"2014-11-29 00:00:00",
79+
"2014-11-27 00:00:00",
80+
"2014-11-28 00:00:00",
81+
"2014-11-27 00:00:00",
82+
"2014-11-26 00:00:00",
83+
"2014-11-25 00:00:00",
84+
"2014-11-26 00:00:00",
85+
"2014-11-25 00:00:00",
86+
"2014-11-25 00:00:00",
87+
"2014-11-24 00:00:00",
88+
"2014-11-24 00:00:00",
89+
"2014-11-23 00:00:00",
90+
"2014-11-23 00:00:00",
91+
"2014-11-24 00:00:00",
92+
"2014-11-23 00:00:00",
93+
"2014-11-22 00:00:00",
94+
"2014-11-23 00:00:00",
95+
"2014-11-22 00:00:00",
96+
"2014-11-22 00:00:00",
97+
"2014-11-21 00:00:00",
98+
"2014-11-21 00:00:00",
99+
"2014-11-21 00:00:00",
100+
"2014-11-20 00:00:00",
101+
"2014-11-20 00:00:00",
102+
"2014-11-20 00:00:00",
103+
"2014-11-19 00:00:00"
104+
],
105+
"autobinx": false,
106+
"xbins": {
107+
"start": 1365984000000,
108+
"end": 1423008000000,
109+
"size": 2592000000
110+
},
111+
"xaxis": "x1",
112+
"yaxis": "y1",
113+
"showlegend": false,
114+
"type": "histogram"
115+
}
116+
],
117+
"layout": {
118+
"titlefont": {
119+
"family": ""
120+
},
121+
"showlegend": false,
122+
"xaxis": {
123+
"title": "date",
124+
"type": "date",
125+
"showgrid": true,
126+
"zeroline": false,
127+
"showline": false,
128+
"ticks": "outside",
129+
"showticklabels": true,
130+
"tickcolor": "rgb(127,127,127)",
131+
"gridcolor": "rgb(255,255,255)"
132+
},
133+
"yaxis": {
134+
"title": "count",
135+
"type": "linear",
136+
"showgrid": true,
137+
"zeroline": false,
138+
"showline": false,
139+
"ticks": "outside",
140+
"showticklabels": true,
141+
"tickcolor": "rgb(127,127,127)",
142+
"gridcolor": "rgb(255,255,255)"
143+
},
144+
"legend": {
145+
"x": 1.05,
146+
"y": 0.5,
147+
"font": {
148+
"family": ""
149+
},
150+
"bgcolor": "rgb(255,255,255)",
151+
"bordercolor": "transparent",
152+
"xanchor": "center",
153+
"yanchor": "top"
154+
},
155+
"margin": {
156+
"r": 10
157+
},
158+
"paper_bgcolor": "rgb(255,255,255)",
159+
"plot_bgcolor": "rgb(229,229,229)",
160+
"barmode": "stack"
161+
}
162+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://plot.ly/~TestBot/812
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
"2014-12-24 00:00:00",
6+
"2014-12-23 00:00:00",
7+
"2014-12-22 00:00:00",
8+
"2014-12-22 00:00:00",
9+
"2014-12-22 00:00:00",
10+
"2014-12-18 00:00:00",
11+
"2014-12-22 00:00:00",
12+
"2014-12-21 00:00:00",
13+
"2014-12-21 00:00:00",
14+
"2014-12-21 00:00:00",
15+
"2014-12-20 00:00:00",
16+
"2014-12-19 00:00:00",
17+
"2014-12-18 00:00:00",
18+
"2014-12-18 00:00:00",
19+
"2014-12-17 00:00:00",
20+
"2014-12-17 00:00:00",
21+
"2013-12-20 00:00:00",
22+
"2014-04-25 00:00:00",
23+
"2014-12-01 00:00:00",
24+
"2014-12-17 00:00:00",
25+
"2014-12-17 00:00:00",
26+
"2014-12-17 00:00:00",
27+
"2014-12-17 00:00:00",
28+
"2014-12-17 00:00:00",
29+
"2014-12-17 00:00:00",
30+
"2014-12-15 00:00:00",
31+
"2014-12-15 00:00:00",
32+
"2014-12-15 00:00:00",
33+
"2014-12-14 00:00:00",
34+
"2014-12-14 00:00:00",
35+
"2014-12-14 00:00:00",
36+
"2014-12-13 00:00:00",
37+
"2014-12-13 00:00:00",
38+
"2013-05-18 00:00:00",
39+
"2014-12-13 00:00:00",
40+
"2014-12-12 00:00:00",
41+
"2014-12-12 00:00:00",
42+
"2014-12-11 00:00:00",
43+
"2014-12-10 00:00:00",
44+
"2014-12-10 00:00:00",
45+
"2014-12-10 00:00:00",
46+
"2014-12-10 00:00:00",
47+
"2014-12-09 00:00:00",
48+
"2014-12-09 00:00:00",
49+
"2014-12-09 00:00:00",
50+
"2014-12-09 00:00:00",
51+
"2014-12-08 00:00:00",
52+
"2014-12-08 00:00:00",
53+
"2014-12-08 00:00:00",
54+
"2014-12-07 00:00:00",
55+
"2014-12-08 00:00:00",
56+
"2014-12-07 00:00:00",
57+
"2014-05-01 00:00:00",
58+
"2014-12-05 00:00:00",
59+
"2014-12-05 00:00:00",
60+
"2014-12-05 00:00:00",
61+
"2014-12-04 00:00:00",
62+
"2014-12-04 00:00:00",
63+
"2014-12-04 00:00:00",
64+
"2014-07-13 00:00:00",
65+
"2014-12-02 00:00:00",
66+
"2014-12-03 00:00:00",
67+
"2014-12-03 00:00:00",
68+
"2014-12-02 00:00:00",
69+
"2014-12-02 00:00:00",
70+
"2014-12-01 00:00:00",
71+
"2014-12-01 00:00:00",
72+
"2014-12-01 00:00:00",
73+
"2014-04-02 00:00:00",
74+
"2014-11-30 00:00:00",
75+
"2014-11-30 00:00:00",
76+
"2014-11-29 00:00:00",
77+
"2014-11-28 00:00:00",
78+
"2014-11-29 00:00:00",
79+
"2014-11-27 00:00:00",
80+
"2014-11-28 00:00:00",
81+
"2014-11-27 00:00:00",
82+
"2014-11-26 00:00:00",
83+
"2014-11-25 00:00:00",
84+
"2014-11-26 00:00:00",
85+
"2014-11-25 00:00:00",
86+
"2014-11-25 00:00:00",
87+
"2014-11-24 00:00:00",
88+
"2014-11-24 00:00:00",
89+
"2014-11-23 00:00:00",
90+
"2014-11-23 00:00:00",
91+
"2014-11-24 00:00:00",
92+
"2014-11-23 00:00:00",
93+
"2014-11-22 00:00:00",
94+
"2014-11-23 00:00:00",
95+
"2014-11-22 00:00:00",
96+
"2014-11-22 00:00:00",
97+
"2014-11-21 00:00:00",
98+
"2014-11-21 00:00:00",
99+
"2014-11-21 00:00:00",
100+
"2014-11-20 00:00:00",
101+
"2014-11-20 00:00:00",
102+
"2014-11-20 00:00:00",
103+
"2014-11-19 00:00:00"
104+
],
105+
"autobinx": false,
106+
"xbins": {
107+
"start": 1365984000000,
108+
"end": 1423008000000,
109+
"size": 2592000000
110+
},
111+
"xaxis": "x1",
112+
"yaxis": "y1",
113+
"showlegend": false,
114+
"type": "histogram"
115+
}
116+
],
117+
"layout": {
118+
"titlefont": {
119+
"family": ""
120+
},
121+
"showlegend": false,
122+
"xaxis": {
123+
"title": "date",
124+
"type": "date",
125+
"showgrid": true,
126+
"zeroline": false,
127+
"showline": false,
128+
"ticks": "outside",
129+
"showticklabels": true,
130+
"tickcolor": "rgb(127,127,127)",
131+
"gridcolor": "rgb(255,255,255)"
132+
},
133+
"yaxis": {
134+
"title": "count",
135+
"type": "linear",
136+
"showgrid": true,
137+
"zeroline": false,
138+
"showline": false,
139+
"ticks": "outside",
140+
"showticklabels": true,
141+
"tickcolor": "rgb(127,127,127)",
142+
"gridcolor": "rgb(255,255,255)"
143+
},
144+
"legend": {
145+
"x": 1.05,
146+
"y": 0.5,
147+
"font": {
148+
"family": ""
149+
},
150+
"bgcolor": "rgb(255,255,255)",
151+
"bordercolor": "transparent",
152+
"xanchor": "center",
153+
"yanchor": "top"
154+
},
155+
"margin": {
156+
"r": 10
157+
},
158+
"paper_bgcolor": "rgb(255,255,255)",
159+
"plot_bgcolor": "rgb(229,229,229)",
160+
"barmode": "stack"
161+
}
162+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://plot.ly/~TestBot/811

tests/testthat/test-ggplot-histogram.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ test_that("datetime binning for class POSIXt works in histograms", {
160160
expect_identical(L$kwargs$layout$xaxis$type, "date")
161161
expect_equal(L[[1]]$xbins$size, 2592000000) # Bin size in ms
162162

163-
save_outputs(hist, "histogram-POSIXt-bins")
163+
save_outputs(histP, "histogram-POSIXt-bins")
164164
})
165165

166166
test_that("datetime binning for class Date works in histograms", {
@@ -174,5 +174,5 @@ test_that("datetime binning for class Date works in histograms", {
174174
expect_identical(L$kwargs$layout$xaxis$type, "date")
175175
expect_equal(L[[1]]$xbins$size, 2.592e+09) # Number of ms in 30 days
176176

177-
save_outputs(hist, "histogram-Date-bins")
178-
})
177+
save_outputs(histD, "histogram-Date-bins")
178+
})

0 commit comments

Comments
 (0)