Skip to content

Commit bfa5bfe

Browse files
committed
merge with master
2 parents f9e252a + bfb23c7 commit bfa5bfe

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

.push_test_table.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ git checkout gh-pages
3838

3939
mv ../code_commits.csv .
4040
cat code_commits.csv
41+
touch table.R
4142
make
4243

4344
# add, commit, push to gh-pages branch of plotly-test-table

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: plotly
22
Type: Package
33
Title: Interactive, publication-quality graphs online.
4-
Version: 0.5.23
4+
Version: 0.5.24
55
Authors@R: c(person("Chris", "Parmer", role = c("aut", "cre"),
66
email = "[email protected]"),
77
person("Scott", "Chamberlain", role = "aut",

NEWS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
0.5.23 -- 10 March 2015.
1+
0.5.24 -- 10 March 2015
22

33
Implemented #167
44

5+
0.5.23 -- 10 March 2015.
6+
7+
geom_ribbon now respects alpha transparency
8+
59
0.5.22 -- 2 March 2015.
610

711
Fixes for ylim() #171.

R/trace_generation.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,8 @@ geom2trace <- list(
613613
type="scatter",
614614
line=paramORdefault(params, aes2line, ribbon.line.defaults),
615615
fill="tonexty",
616-
fillcolor=toFill(params$fill))
616+
fillcolor=toFill(params$fill, ifelse(is.null(params$alpha), 1,
617+
params$alpha)))
617618
},
618619
abline=function(data, params) {
619620
list(x=c(params$xstart, params$xend),

tests/testthat/test-ggplot-ribbon.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,13 @@ test_that("sanity check for geom_ribbon", {
1414
})
1515

1616
save_outputs(rb, "ribbon")
17+
18+
rb2 <- ggplot(huron, aes(x=year)) +
19+
geom_ribbon(aes(ymin=level-1, ymax=level+1), alpha = 0.1)
20+
L2 <- gg2list(rb2)
21+
22+
test_that("geom_ribbon respects alpha transparency", {
23+
expect_match(L2[[1]]$fillcolor, "0.1)", fixed=TRUE)
24+
})
25+
26+
save_outputs(rb2, "ribbon-alpha")

0 commit comments

Comments
 (0)