Skip to content

Commit cb67ac5

Browse files
authored
Merge branch 'source-design-merge' into geom_count
2 parents 8f0690c + d5d0200 commit cb67ac5

File tree

67 files changed

+1681
-279
lines changed

Some content is hidden

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

67 files changed

+1681
-279
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ _posts/python/fundamentals/static-image/images
2323
_config_personal.yml
2424
_posts/python/html
2525
.Rproj.user
26+
documentation.Rproj

_data/cache_bust_css.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
9739c634dee855183734aa6d8b6b0866 ../all_static/css/main.css
1+
7ce96b3003bafe7485b3c03ebccabac3 ../all_static/css/main.css
22
a5765df8bc2358dd61c19edcc0cbef7d ../all_static/css/normalize.css

_includes/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
<!-- Fonts -->
1919
<link href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Inconsolata|Ubuntu+Mono:400,700"
2020
rel="stylesheet" type="text/css"/>
21+
<link href="https://fonts.googleapis.com/css?family=Asap&display=swap" rel="stylesheet"/>
22+
2123
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
2224

2325
<!-- code highlighting -->

_includes/lang-splash-banner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<div style="margin-top: 100px"></div>
1+
<div style="margin-top: 80px"></div>

_includes/plotschema-reference.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,7 @@
9696
{% capture curlyarrays %}{% raw %}{arrays}{% endraw %}{% endcapture %}
9797
{% capture curly2darray %}{% raw %}{2D array}{% endraw %}{% endcapture %}
9898
{% capture curlyobject %}{% raw %}{object}{% endraw %}{% endcapture %}
99-
{{ plotschemacontent | replace:'*',quote | replace:curlyarray,array | replace:curlyobject,object | replace:curlyarrays,arrays | replace:curly2darray,2darray | replace:"data_array",data_array | replace:"true",truestring | replace:"false",falsestring }}
99+
{{ plotschemacontent | replace:'*',quote |
100+
replace:curlyarray,array | replace:curlyobject,object |
101+
replace:curlyarrays,arrays | replace:curly2darray,2darray |
102+
replace:"data_array",data_array | replace:"true",truestring | replace:"false",falsestring | normalize_whitespace }}

_includes/reference-block.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
<ul>
22
{% for obj in attribute %}
3-
{% if obj[0] != "flags" and obj[0] != "role" and obj[0] != "extras" and obj[0] != "description" and obj[0] != "_isLinkedToArray" and obj[0] != "items" and obj[0] != "uid" and obj[0] != "smith" and obj[0] != "_deprecated" and obj[0] != "_isSubplotObj" and obj[0] != "editType" and obj[0] != "impliedEdits"%}
3+
{% capture last_three %}{{ obj[0] | slice: -3, 3 }}{% endcapture %}
4+
{% if last_three != "src" and obj[0] != "flags" and obj[0] != "stream" and obj[0] != "_arrayAttrRegexps"
5+
and obj[0] != "role" and obj[0] != "extras"
6+
and obj[0] != "description" and obj[0] != "_isLinkedToArray"
7+
and obj[0] != "items" and obj[0] != "uid"
8+
and obj[0] != "smith" and obj[0] != "_deprecated"
9+
and obj[0] != "_isSubplotObj"
10+
and obj[0] != "editType" and obj[0] != "impliedEdits"%}
411

512
{% if obj[0] == "type" and page.language == "python" and block == "data" %}
613
{% continue %}
714
{% endif %}
815

16+
{% if (obj[0] == "r" or obj[0] == "t") and
17+
(include.parentlink == "scatter" or include.parentlink == "scattergl" or include.parentlink == "bar" %}
18+
{% continue %}
19+
{% endif %}
20+
21+
922
<li>
1023
{% if toc %}
1124
{% assign id="" %}

_posts/2015-07-26-index.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
<main class="page --home --api">
1717
<div class="--wrap-top">
1818
<section class="hero">
19-
<div class="hero-bg">
20-
<img src="https://s3-us-west-1.amazonaws.com/plotly-tutorials/assets/api/images/api-home-bg.jpg" data-depth="0.3" alt=""
21-
class="layer">
22-
<img src="https://s3-us-west-1.amazonaws.com/plotly-tutorials/assets/api/images/api-home-front.png" data-depth="0.1" alt=""
23-
class="layer">
24-
</div>
2519
<div class="--wrap-inner">
2620
<div class="--welcome layer"><span class="meta">Welcome to the</span>
2721
<h2>Plotly Open Source Graphing Libraries</h2>

_posts/ggplot2/2016-11-29-geom_boxplot.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 1
12+
order: 2
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-geom_boxplot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 1
12+
order: 2
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-geom_ribbon.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 4
12+
order: 5
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-geom_ribbon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 4
12+
order: 5
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-geom_smooth.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 5
12+
order: 6
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-geom_smooth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 5
12+
order: 6
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-geom_tile.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: basic
12-
order: 8
12+
order: 12
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-geom_tile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: basic
12-
order: 8
12+
order: 12
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-stat_smooth.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 5
12+
order: 7
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2016-11-29-stat_smooth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 5
12+
order: 7
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2017-04-21-geom_quantile.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 6
12+
order: 4
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2017-04-21-geom_quantile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 6
12+
order: 4
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2017-04-21-geom_spoke.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: basic
12-
order: 11
12+
order: 10
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2017-04-21-geom_spoke.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: basic
12-
order: 11
12+
order: 10
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2018-06-22-geom_sf.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: basic
12-
order: 12
12+
order: 9
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2018-06-22-geom_sf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: basic
12-
order: 12
12+
order: 9
1313
output:
1414
html_document:
1515
keep_md: true

_posts/ggplot2/2019-07-12-geom_bin2d.Rmd

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 2
12+
order: 1
1313
output:
1414
html_document:
1515
keep_md: true
@@ -39,6 +39,9 @@ packageVersion('plotly')
3939
```
4040

4141
### Basic 2d Heatmap
42+
See also geom\_hex for a similar geom with hexagonal bins. Note: facetting is supported in geom\_bin2d but not geom\_hex.
43+
44+
Source: [Department of Canadian Heritage](https://open.canada.ca/data/en/dataset/a0bff264-1c80-41ee-aef9-e7da347c5158)
4245

4346
```{r, results='hide'}
4447
library(plotly)
@@ -100,7 +103,7 @@ p <- ggplot(english_french, aes(x=engperc, y=frenperc, weight=total)) +
100103
labs(title = "Distribution of the Canadian population by English and French fluency",
101104
x = "% fluent in English",
102105
y = "% fluent in French",
103-
fill = "# of people")
106+
fill = "population")
104107
p <- ggplotly(p)
105108
106109
@@ -127,7 +130,7 @@ p <- ggplot(english_french, aes(x=engperc,y=frenperc, weight=total)) +
127130
labs(title = "Distribution of Canadian towns by English and French fluency",
128131
x = "% fluent in English",
129132
y = "% fluent in French",
130-
fill = "# of people")
133+
fill = "population")
131134
p <- ggplotly(p)
132135
133136
@@ -154,7 +157,7 @@ p <- ggplot(english_french, aes(x=engperc,y=frenperc, weight=total)) +
154157
labs(title = "Distribution of Canadian towns by English and French fluency",
155158
x = "% fluent in English",
156159
y = "% fluent in French",
157-
fill = "# of people") +
160+
fill = "population") +
158161
theme_bw() +
159162
theme(text = element_text(family = 'Fira Sans'))
160163
p <- ggplotly(p)

_posts/ggplot2/2019-07-12-geom_bin2d.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ language: ggplot2
99
page_type: example_index
1010
has_thumbnail: true
1111
display_as: statistical
12-
order: 2
12+
order: 1
1313
output:
1414
html_document:
1515
keep_md: true
@@ -36,11 +36,13 @@ packageVersion('plotly')
3636
```
3737

3838
```
39-
## [1] '4.9.0'
39+
## [1] '4.9.0.9000'
4040
```
4141

4242
### Basic 2d Heatmap
43+
See also [geom_hex](https://plot.ly/ggplot2/geom_hex/) for a similar geom with hexagonal bins. Note: facetting is supported in geom\_bin2d but not geom\_hex.
4344

45+
Source: [Department of Canadian Heritage](https://open.canada.ca/data/en/dataset/a0bff264-1c80-41ee-aef9-e7da347c5158)
4446

4547
```r
4648
library(plotly)
@@ -100,7 +102,7 @@ p <- ggplot(english_french, aes(x=engperc, y=frenperc, weight=total)) +
100102
labs(title = "Distribution of the Canadian population by English and French fluency",
101103
x = "% fluent in English",
102104
y = "% fluent in French",
103-
fill = "# of people")
105+
fill = "population")
104106
p <- ggplotly(p)
105107

106108

@@ -113,7 +115,7 @@ chart_link
113115
<iframe src="https://plot.ly/~RPlotBot/5680.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
114116

115117
### With Facets
116-
We can facet the graphic with the "region" column, and set "bins" to 20, so that the graph is 20 x 20 sides.
118+
We can facet the graphic with the "region" column, and set "bins" to 20, so that the graph is 20 x 20 sides.
117119

118120

119121
```r
@@ -126,7 +128,7 @@ p <- ggplot(english_french, aes(x=engperc,y=frenperc, weight=total)) +
126128
labs(title = "Distribution of Canadian towns by English and French fluency",
127129
x = "% fluent in English",
128130
y = "% fluent in French",
129-
fill = "# of people")
131+
fill = "population")
130132
p <- ggplotly(p)
131133

132134

@@ -152,7 +154,7 @@ p <- ggplot(english_french, aes(x=engperc,y=frenperc, weight=total)) +
152154
labs(title = "Distribution of Canadian towns by English and French fluency",
153155
x = "% fluent in English",
154156
y = "% fluent in French",
155-
fill = "# of people") +
157+
fill = "population") +
156158
theme_bw() +
157159
theme(text = element_text(family = 'Fira Sans'))
158160
p <- ggplotly(p)

0 commit comments

Comments
 (0)