Skip to content

Commit 6ed22f6

Browse files
committed
Site updated at 2017-10-02 15:33:11 UTC
1 parent 0169e9e commit 6ed22f6

File tree

888 files changed

+56726
-1963
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

888 files changed

+56726
-1963
lines changed
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
var Data = {
2+
type: 'scatter',
3+
x: [1,2,3,4,5,6,7,8,9],
4+
y: [4,2,-1,4,-5,-7,0,3,8],
5+
mode: 'lines+markers',
6+
name: 'Data',
7+
showlegend: true,
8+
hoverinfo: 'all',
9+
line: {
10+
color: 'blue',
11+
width: 2
12+
},
13+
marker: {
14+
color: 'blue',
15+
size: 8,
16+
symbol: 'circle'
17+
}
18+
}
19+
20+
var Viol = {
21+
type: 'scatter',
22+
x: [6,9],
23+
y: [-7,8],
24+
mode: 'markers',
25+
name: 'Violation',
26+
showlegend: true,
27+
marker: {
28+
color: 'rgb(255,65,54)',
29+
line: {width: 3},
30+
opacity: 0.5,
31+
size: 12,
32+
symbol: 'circle-open'
33+
}
34+
}
35+
36+
var CL = {
37+
type: 'scatter',
38+
x: [0.5, 10, null, 0.5, 10],
39+
y: [-5, -5, null, 5, 5],
40+
mode: 'lines',
41+
name: 'LCL/UCL',
42+
showlegend: true,
43+
line: {
44+
color: 'red',
45+
width: 2,
46+
dash: 'dash'
47+
}
48+
}
49+
50+
var Centre = {
51+
type: 'scatter',
52+
x: [0.5, 10],
53+
y: [0, 0],
54+
mode: 'lines',
55+
name: 'Centre',
56+
showlegend: true,
57+
line: {
58+
color: 'grey',
59+
width: 2
60+
}
61+
}
62+
63+
var histo = {
64+
type: 'histogram',
65+
x: [1,2,3,4,5,6,7,8,9],
66+
y: [4,2,-1,4,-5,-7,0,3,8],
67+
name: 'Distribution',
68+
orientation: 'h',
69+
marker: {
70+
color: 'blue',
71+
line: {
72+
color: 'white',
73+
width: 1
74+
}
75+
},
76+
xaxis: 'x2',
77+
yaxis: 'y2'
78+
}
79+
80+
var data = [Data,Viol,CL,Centre,histo]
81+
82+
// layout
83+
var layout = {
84+
title: 'Basic SPC Chart',
85+
xaxis: {
86+
domain: [0, 0.7], // 0 to 70% of width
87+
zeroline: false
88+
},
89+
yaxis: {
90+
range: [-10,10],
91+
zeroline: false
92+
},
93+
xaxis2: {
94+
domain: [0.8, 1] // 70 to 100% of width
95+
},
96+
yaxis2: {
97+
anchor: 'x2',
98+
showticklabels: false
99+
}
100+
}
101+
102+
Plotly.plot('myDiv', data,layout);

2017/09/27/spc-basic.html

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
var Data = {
2+
type: 'scatter',
3+
x: [1,2,3,4,5,6,7,8,9],
4+
y: [4,2,-1,4,-5,-7,0,3,8],
5+
mode: 'lines+markers',
6+
name: 'Data',
7+
showlegend: true,
8+
hoverinfo: 'all',
9+
line: {
10+
color: 'blue',
11+
width: 2
12+
},
13+
marker: {
14+
color: 'blue',
15+
size: 8,
16+
symbol: 'circle'
17+
}
18+
}
19+
20+
var Viol = {
21+
type: 'scatter',
22+
x: [6,9],
23+
y: [-7,8],
24+
mode: 'markers',
25+
name: 'Violation',
26+
showlegend: true,
27+
marker: {
28+
color: 'rgb(255,65,54)',
29+
line: {width: 3},
30+
opacity: 0.5,
31+
size: 12,
32+
symbol: 'circle-open'
33+
}
34+
}
35+
36+
var CL = {
37+
type: 'scatter',
38+
x: [0.5, 10, null, 0.5, 10],
39+
y: [-5, -5, null, 5, 5],
40+
mode: 'lines',
41+
name: 'LCL/UCL',
42+
showlegend: true,
43+
line: {
44+
color: 'red',
45+
width: 2,
46+
dash: 'dash'
47+
}
48+
}
49+
50+
var Centre = {
51+
type: 'scatter',
52+
x: [0.5, 10],
53+
y: [0, 0],
54+
mode: 'lines',
55+
name: 'Centre',
56+
showlegend: true,
57+
line: {
58+
color: 'grey',
59+
width: 2
60+
}
61+
}
62+
63+
var data = [Data,Viol,CL,Centre]
64+
65+
var layout = {
66+
title: 'Basic SPC Chart',
67+
xaxis: {
68+
zeroline: false
69+
},
70+
yaxis: {
71+
range: [-10,10],
72+
zeroline: false
73+
}
74+
}
75+
76+
Plotly.plot('myDiv', data,layout);

ggplot2/aes/index.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,6 +2103,42 @@ <h1>
21032103

21042104

21052105

2106+
2107+
2108+
2109+
2110+
2111+
2112+
2113+
2114+
2115+
2116+
2117+
2118+
2119+
2120+
2121+
2122+
2123+
2124+
2125+
2126+
2127+
2128+
2129+
2130+
2131+
2132+
2133+
2134+
2135+
2136+
2137+
2138+
2139+
2140+
2141+
21062142

21072143

21082144

ggplot2/animations/index.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,42 @@ <h1>
795795

796796

797797

798+
799+
800+
801+
802+
803+
804+
805+
806+
807+
808+
809+
810+
811+
812+
813+
814+
815+
816+
817+
818+
819+
820+
821+
822+
823+
824+
825+
826+
827+
828+
829+
830+
831+
832+
833+
798834

799835

800836

ggplot2/axis-text/index.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,6 +2091,42 @@ <h1>
20912091

20922092

20932093

2094+
2095+
2096+
2097+
2098+
2099+
2100+
2101+
2102+
2103+
2104+
2105+
2106+
2107+
2108+
2109+
2110+
2111+
2112+
2113+
2114+
2115+
2116+
2117+
2118+
2119+
2120+
2121+
2122+
2123+
2124+
2125+
2126+
2127+
2128+
2129+
20942130

20952131

20962132

ggplot2/axis-ticks/index.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,6 +2079,42 @@ <h1>
20792079

20802080

20812081

2082+
2083+
2084+
2085+
2086+
2087+
2088+
2089+
2090+
2091+
2092+
2093+
2094+
2095+
2096+
2097+
2098+
2099+
2100+
2101+
2102+
2103+
2104+
2105+
2106+
2107+
2108+
2109+
2110+
2111+
2112+
2113+
2114+
2115+
2116+
2117+
20822118

20832119

20842120

ggplot2/axis-title/index.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,42 @@ <h1>
20672067

20682068

20692069

2070+
2071+
2072+
2073+
2074+
2075+
2076+
2077+
2078+
2079+
2080+
2081+
2082+
2083+
2084+
2085+
2086+
2087+
2088+
2089+
2090+
2091+
2092+
2093+
2094+
2095+
2096+
2097+
2098+
2099+
2100+
2101+
2102+
2103+
2104+
2105+
20702106

20712107

20722108

0 commit comments

Comments
 (0)