Closed padpadpadpad closed 8 months ago
thanks, it should be fixed now
dat <- data.frame(a = c(1, 1, 2, 2, 5), b = 6:10)
ft <- flextable(dat)
ft <- merge_v(ft, ~a, part = "body")
ft <- hline(
x = ft,
i = 2, part = "body",
border = fp_border(color = "red")
)
path <- save_as_image(ft, path = tempfile(fileext = ".png"), res = 150)
browseURL(path)
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Hi everyone
I am trying to merge a column and then create horizontal lines that split each level of the factor. When I merge the first column, the horizontal line works for printing of the table, but it does not work for the plotting, which is then used in
save_as_image()
from what I can tell. Seems to be an error but cannot work out where or how to fix it.Below is reproducible code I took from
fix_border_issues()
and amended slightly.Session Info: