For instance:
surveyreport::report_chart_likert(data = dataset4,
cols = c_tp_1:c_lmo_5,
colour_palette = c("#E8B0B7", "#DE919A", "#D5727D", "#C84957", "#BC3848", "#9D2F3C", "#7E2630"),
docx_template = .,
colour_na = "#FFFFFF",
font_family = "Calibri",
digits=0,
#hide_label_if_below = 3,
label_separator = "Spørreundersøkelse - ",
showNA = "no") %>%
officer:::print.rdocx(target = "test7.docx")
The labels for items should start after the word "Spørreundersøkelse - ", instead we are left with some items that don't have "Spørreundersøkelse - " in front, and some that does. This has been tested on other graphs and seem to be a problem for most printed graphs in the word document, although some works just fine. For instance, there was no problem with:
surveyreport::report_chart_likert(data = dataset4,
cols = c(n_tp_5, n_tp_7, n_tp_8, n_tp_6, n_tp_9, n_tp_10),
colour_palette = c("#E8B0B7", "#DE919A", "#D5727D", "#C84957", "#BC3848", "#9D2F3C", "#7E2630"),
colour_na = "#FFFFFF",
docx_template = .,
font_family = "Calibri",
digits = 0,
#hide_label_if_below = 0,
label_separator = "\(ev. dersom de fantes\)\? - ",
showNA = "no") %>%
officer:::print.rdocx(target = "test7.docx")