File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ iidda_availability = function(data
1414 , within_panel_variable = NULL
1515 , among_panel_variable = NULL
1616
17- # # attach
17+ # # prep
1818 , within_panel_order = OrderGuesser()
1919 , colour_order = OrderGuesser()
2020 , variable_converter = DataDictionaryConverter()
@@ -34,6 +34,7 @@ iidda_availability = function(data
3434 , text_size = 9
3535 , left_margin = 100
3636 , legend_margin = 15
37+ , legend_colour_breaks = character ()
3738 , subplot_widths = c(5 , 1 )
3839) {
3940 data_prep = pass_args(data , iidda_prep_availabiliy )
@@ -128,6 +129,7 @@ AttachAvailability = function() function(data
128129 , text_size = 9
129130 , left_margin = 100
130131 , legend_margin = 15
132+ , legend_colour_breaks = waiver()
131133 , subplot_widths = c(5 , 1 )
132134) {
133135 data = resolve_var_args(data
@@ -209,6 +211,7 @@ AttachAvailability = function() function(data
209211 title = title_colour
210212 , position = " top"
211213 )
214+ , breaks = legend_colour_breaks
212215 , type = scale_colour
213216 )
214217 )
You can’t perform that action at this time.
0 commit comments