File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -97,17 +97,18 @@ Coord <- ggproto("Coord",
97
97
aesthetics <- c(" x" , " y" , " x.sec" , " y.sec" )
98
98
names(aesthetics ) <- aesthetics
99
99
is_sec <- grepl(" sec$" , aesthetics )
100
+ scales <- panel_params [aesthetics ]
100
101
101
102
# Do guide setup
102
103
guides <- guides $ setup(
103
- panel_params , aesthetics ,
104
+ scales , aesthetics ,
104
105
default = params $ guide_default %|| % guide_axis(),
105
106
missing = params $ guide_missing %|| % guide_none()
106
107
)
107
108
guide_params <- guides $ get_params(aesthetics )
108
109
109
110
# Resolve positions
110
- scale_position <- lapply(panel_params [ aesthetics ] , `[[` , " position" )
111
+ scale_position <- lapply(scales , `[[` , " position" )
111
112
guide_position <- lapply(guide_params , `[[` , " position" )
112
113
guide_position [! is_sec ] <- Map(
113
114
function (guide , scale ) guide %| W | % scale ,
You can’t perform that action at this time.
0 commit comments