@@ -88,8 +88,6 @@ ggplotly.ggmatrix <- function(p = ggplot2::last_plot(), width = NULL,
88
88
height = NULL , tooltip = " all" , dynamicTicks = FALSE ,
89
89
layerData = 1 , originalData = TRUE , source = " A" , ... ) {
90
90
dots <- list (... )
91
- # rectify tooltips, ggplot automatically convert `color` => `colour`
92
- tooltip <- rectify_tooltips(tooltip )
93
91
94
92
# provide a sensible crosstalk if none is already provided (makes ggnostic() work at least)
95
93
if (! crosstalk_key() %in% names(p $ data )) {
@@ -148,8 +146,6 @@ ggplotly.ggmatrix <- function(p = ggplot2::last_plot(), width = NULL,
148
146
ggplotly.ggplot <- function (p = ggplot2 :: last_plot(), width = NULL ,
149
147
height = NULL , tooltip = " all" , dynamicTicks = FALSE ,
150
148
layerData = 1 , originalData = TRUE , source = " A" , ... ) {
151
- # rectify tooltips, ggplot automatically convert `color` => `colour`
152
- tooltip <- rectify_tooltips(tooltip )
153
149
l <- gg2list(p , width = width , height = height , tooltip = tooltip ,
154
150
dynamicTicks = dynamicTicks , layerData = layerData ,
155
151
originalData = originalData , source = source , ... )
@@ -1438,8 +1434,3 @@ getAesMap <- function(plot, layer) {
1438
1434
layer $ mapping
1439
1435
}
1440
1436
}
1441
-
1442
- rectify_tooltips <- function (tooltip ){
1443
- tooltip [tooltip == " color" ] <- " colour"
1444
- tooltip
1445
- }
0 commit comments