Skip to content

Commit 550141d

Browse files
committed
corrected ggtech-etsy font
1 parent dc011e6 commit 550141d

Some content is hidden

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

61 files changed

+10640
-9
lines changed

Diff for: ggtech.Rmd

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ library(ggtech)
1414
1515
# Make sure to install the required fonts
1616
# (instructions at the end of this file).
17+
extrafont::font_import(pattern = 'Guardian-EgypTT-Text-Regular.ttf', prompt=FALSE)
18+
1719
d <- qplot(carat, data = diamonds[diamonds$color %in%LETTERS[4:7], ], geom = "histogram", bins=30, fill = color)
1820
1921
```

Diff for: ggtech.html

+58-9
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
<meta charset="utf-8">
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99
<meta name="generator" content="pandoc" />
10+
<meta name="viewport" content="width=device-width, initial-scale=1">
1011

1112

1213

1314
<title>ggplot2 extensions: ggtech</title>
1415

15-
<script src="libs/jquery-1.11.0/jquery.min.js"></script>
16+
<script src="libs/jquery-1.11.3/jquery.min.js"></script>
1617
<meta name="viewport" content="width=device-width, initial-scale=1" />
17-
<link href="libs/bootstrap-3.3.1/css/cosmo.min.css" rel="stylesheet" />
18-
<script src="libs/bootstrap-3.3.1/js/bootstrap.min.js"></script>
19-
<script src="libs/bootstrap-3.3.1/shim/html5shiv.min.js"></script>
20-
<script src="libs/bootstrap-3.3.1/shim/respond.min.js"></script>
18+
<link href="libs/bootstrap-3.3.5/css/cosmo.min.css" rel="stylesheet" />
19+
<script src="libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
20+
<script src="libs/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
21+
<script src="libs/bootstrap-3.3.5/shim/respond.min.js"></script>
2122

2223
<!-- Styles for this site -->
2324
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -47,6 +48,7 @@
4748

4849

4950

51+
5052
</head>
5153

5254
<body>
@@ -61,13 +63,56 @@
6163
color: inherit;
6264
background-color: rgba(0, 0, 0, 0.04);
6365
}
64-
img {
65-
max-width:100%;
66-
height: auto;
66+
img {
67+
max-width:100%;
68+
height: auto;
69+
}
70+
h1 {
71+
font-size: 34px;
72+
}
73+
h1.title {
74+
font-size: 38px;
75+
}
76+
h2 {
77+
font-size: 30px;
78+
}
79+
h3 {
80+
font-size: 24px;
81+
}
82+
h4 {
83+
font-size: 18px;
84+
}
85+
h5 {
86+
font-size: 16px;
87+
}
88+
h6 {
89+
font-size: 12px;
90+
}
91+
.tabbed-pane {
92+
padding-top: 12px;
93+
}
94+
button.code-folding-btn:focus {
95+
outline: none;
6796
}
6897
</style>
98+
99+
69100
<div class="container-fluid main-container">
70101

102+
<!-- tabsets -->
103+
<script src="libs/navigation-1.0/tabsets.js"></script>
104+
<script>
105+
$(document).ready(function () {
106+
window.buildTabsets("TOC");
107+
});
108+
</script>
109+
110+
<!-- code folding -->
111+
112+
113+
114+
115+
71116
<!--html_preserve-->
72117

73118
<div class="header">
@@ -191,6 +236,8 @@ <h3>ggtech</h3>
191236

192237
# Make sure to install the required fonts
193238
# (instructions at the end of this file).
239+
extrafont::font_import(pattern = &#39;Guardian-EgypTT-Text-Regular.ttf&#39;, prompt=FALSE)
240+
194241
d &lt;- qplot(carat, data = diamonds[diamonds$color %in%LETTERS[4:7], ], geom = &quot;histogram&quot;, bins=30, fill = color)</code></pre>
195242
<p>Tech themes and scales:</p>
196243
<pre class="r"><code>d + theme_tech(theme=&quot;airbnb&quot;) + ggtitle(&quot;Airbnb ggplot2 theme&quot;) + scale_fill_tech(theme=&quot;airbnb&quot;)</code></pre>
@@ -230,7 +277,7 @@ <h3>ggtech</h3>
230277
theme_tech(&quot;twitter&quot;) +
231278
ggtitle(&quot;Twitter geom&quot;)</code></pre>
232279
<p><img src="ggtech_files/figure-html/unnamed-chunk-12-1.png" title="" alt="" width="576" /></p>
233-
</div><!-- col-sm-8 -->
280+
</div> <!-- col-sm-8 -->
234281

235282
</div> <!-- row -->
236283
</div>
@@ -332,6 +379,8 @@ <h3>Install fonts:</h3>
332379

333380
</script>
334381

382+
383+
335384
</div>
336385

337386
<script>

Diff for: ggtech_files/figure-html/unnamed-chunk-10-1.png

-732 Bytes
Loading

Diff for: ggtech_files/figure-html/unnamed-chunk-11-1.png

-323 Bytes
Loading

Diff for: ggtech_files/figure-html/unnamed-chunk-3-1.png

1.14 KB
Loading

Diff for: ggtech_files/figure-html/unnamed-chunk-4-1.png

-2.07 KB
Loading

Diff for: ggtech_files/figure-html/unnamed-chunk-5-1.png

34 Bytes
Loading

Diff for: ggtech_files/figure-html/unnamed-chunk-9-1.png

1.1 KB
Loading

0 commit comments

Comments
 (0)