Skip to content

Commit 2ae19b1

Browse files
committed
Add outputs for geom_hline
1 parent 01b9b64 commit 2ae19b1

File tree

4 files changed

+99
-0
lines changed

4 files changed

+99
-0
lines changed
26.1 KB
Loading
20.8 KB
Loading

tests/testthat/test-ggplot-hline.json

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
0,
6+
0.5,
7+
1,
8+
1.5,
9+
2,
10+
2.5,
11+
3,
12+
3.5
13+
],
14+
"y": [
15+
0,
16+
0.475,
17+
0.95,
18+
1.4249999999999998,
19+
1.9,
20+
2.375,
21+
2.8499999999999996,
22+
3.3249999999999997
23+
],
24+
"mode": "markers",
25+
"marker": {
26+
"color": "rgb(0,0,0)",
27+
"size": 10,
28+
"symbol": "circle",
29+
"opacity": 1,
30+
"sizeref": 1,
31+
"sizemode": "area"
32+
},
33+
"xaxis": "x1",
34+
"yaxis": "y1",
35+
"showlegend": false,
36+
"type": "scatter"
37+
},
38+
{
39+
"x": [
40+
-0.17500000000000002,
41+
3.675
42+
],
43+
"y": [
44+
1.1,
45+
1.1
46+
],
47+
"mode": "lines",
48+
"line": {
49+
"color": "rgb(0,255,0)",
50+
"width": 3,
51+
"dash": "solid",
52+
"shape": "linear"
53+
},
54+
"xaxis": "x1",
55+
"yaxis": "y1",
56+
"showlegend": false,
57+
"type": "scatter"
58+
}
59+
],
60+
"layout": {
61+
"titlefont": {
62+
"family": ""
63+
},
64+
"showlegend": true,
65+
"xaxis": {
66+
"title": "x1",
67+
"type": "linear",
68+
"showgrid": true,
69+
"showline": false,
70+
"showticklabels": true,
71+
"tickcolor": "rgb(127,127,127)",
72+
"gridcolor": "rgb(255,255,255)"
73+
},
74+
"yaxis": {
75+
"title": "x2",
76+
"type": "linear",
77+
"showgrid": true,
78+
"showline": false,
79+
"showticklabels": true,
80+
"tickcolor": "rgb(127,127,127)",
81+
"gridcolor": "rgb(255,255,255)"
82+
},
83+
"legend": {
84+
"x": 100,
85+
"y": 0.5,
86+
"font": {
87+
"family": ""
88+
},
89+
"bgcolor": "rgb(255,255,255)",
90+
"bordercolor": "transparent"
91+
},
92+
"margin": {
93+
"r": 10
94+
},
95+
"paper_bgcolor": "rgb(255,255,255)",
96+
"plot_bgcolor": "rgb(229,229,229)"
97+
}
98+
}

tests/testthat/test-ggplot-hline.url

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://plot.ly/~TestBot/561

0 commit comments

Comments
 (0)