Skip to content

Commit 19e42ab

Browse files
committed
Fix identation of aesConverters
1 parent 12f471a commit 19e42ab

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

R/ggplotly.R

+16-14
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,22 @@ polygon.line.defaults$colour <- NA
2929
# Convert R lty line type codes to plotly "dash" codes.
3030
lty2dash <- c(numeric.lty, named.lty, coded.lty)
3131

32-
aesConverters <- list(linetype=function(lty) {
33-
lty2dash[as.character(lty)]
34-
},
35-
colour=function(col) {
36-
toRGB(col)
37-
},
38-
size=identity,
39-
sizeref=identity,
40-
sizemode=identity,
41-
alpha=identity,
42-
shape=function(pch) {
43-
pch2symbol[as.character(pch)]
44-
},
45-
direction=identity)
32+
aesConverters <- list(
33+
linetype=function(lty) {
34+
lty2dash[as.character(lty)]
35+
},
36+
colour=function(col) {
37+
toRGB(col)
38+
},
39+
size=identity,
40+
sizeref=identity,
41+
sizemode=identity,
42+
alpha=identity,
43+
shape=function(pch) {
44+
pch2symbol[as.character(pch)]
45+
},
46+
direction=identity
47+
)
4648

4749
markLegends <-
4850
## NOTE: Do we also want to split on size?

0 commit comments

Comments
 (0)