From 86b244bd861b5f06ef1ad4d2ff6048485fa19513 Mon Sep 17 00:00:00 2001 From: Abdessabour Moutik Date: Fri, 8 Oct 2021 09:03:38 -0700 Subject: [PATCH] Allowed for user defined axis positions. Closes #2029 --- R/ggplotly.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/ggplotly.R b/R/ggplotly.R index e29dd2b907..edf4177967 100644 --- a/R/ggplotly.R +++ b/R/ggplotly.R @@ -753,6 +753,7 @@ gg2list <- function(p, width = NULL, height = NULL, gridwidth = unitConvert(panelGrid, "pixels", type), zeroline = FALSE, anchor = anchor, + side = scales$get_scales(xy)$position, # layout.axisid.title don't yet support alignment :( title = list( text = faced(axisTitleText, axisTitle$face),