Skip to content

Commit 4e95808

Browse files
adjust breaks
1 parent d946ff4 commit 4e95808

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/iidda.analysis/R/availability.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)